mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
clarify the comment about double-setting the status in SetError()
Change-Id: I67107220b7a84459592c726dab95483acd4f59f2
This commit is contained in:
parent
9fecdd713e
commit
03e76e962e
@ -75,10 +75,7 @@ void VP8Delete(VP8Decoder* const dec) {
|
|||||||
|
|
||||||
int VP8SetError(VP8Decoder* const dec,
|
int VP8SetError(VP8Decoder* const dec,
|
||||||
VP8StatusCode error, const char* const msg) {
|
VP8StatusCode error, const char* const msg) {
|
||||||
// TODO This check would be unnecessary if alpha decompression was separated
|
// The oldest error reported takes precedence over the new one.
|
||||||
// from VP8ProcessRow/FinishRow. This avoids setting 'dec->status_' to
|
|
||||||
// something other than VP8_STATUS_BITSTREAM_ERROR on alpha decompression
|
|
||||||
// failure.
|
|
||||||
if (dec->status_ == VP8_STATUS_OK) {
|
if (dec->status_ == VP8_STATUS_OK) {
|
||||||
dec->status_ = error;
|
dec->status_ = error;
|
||||||
dec->error_msg_ = msg;
|
dec->error_msg_ = msg;
|
||||||
|
Loading…
Reference in New Issue
Block a user