Remove the pending_decoded_image_ member
Remove the pending_decoded_image_ member of AVIFImageDecoder. It is apparently intended to avoid calling avifDecoderNthImage() with index 0 twice. But libavif allows us to do that, and the second call will return immediately. Move the SetSize() call and size check out of DecodeImage() to the two call sites. Bug: 960620 Change-Id: I4c7beaed4ca5aa8040aa7b3cb2facd92e18eb38f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2161871Reviewed-by:Leon Scroggins <scroggo@google.com> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Wan-Teh Chang <wtc@google.com> Cr-Commit-Position: refs/heads/master@{#762028}
Showing
Please register or sign in to comment