Fix VideoDecoderShim to return correct decode_id for all codecs.
Previously VideoDecoderShim was assuming that the decoder calls output callback only after decode is finished. That was a correct assumption for VpxVideoDecoder, but not for FFmpegVideoDecoder. As result PPB_VideoDecoder wasn't returning correct decode_id for decoded frames. Now software decoders (i.e. VpxVideoDecoder and FFmpegVideoDecoder) guarantee that they output all decoded frame before Decode() call completes, which allows to return correct decode_id from VideoDecoderShim. BUG=448983 R=bbudge@chromium.org, xhwang@chromium.org Review URL: https://codereview.chromium.org/805193006 Cr-Commit-Position: refs/heads/master@{#312874}
Showing
Please register or sign in to comment