webmproject / sjpeg

SimpleJPEG: simple jpeg encoder
Apache License 2.0
70 stars 12 forks source link

sjpeg sink: change the Commit() protocol a bit #78

Closed skal65535 closed 6 years ago

skal65535 commented 6 years ago

At the end, we can sometimes call Commit() with extra_size = 0 and in this case we should return NULL (which is valid, but was signaling an error).

-> Update the protocol to return an error bool for good.

Change-Id: I86e112c5fff678a21fe9be594ff3da4a71d0b7d9