diff options
author | posciak <posciak@chromium.org> | 2015-02-27 16:33:16 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-28 00:33:52 +0000 |
commit | a0c036305b748e1617e56c624cb0f4c49c24e6e0 (patch) | |
tree | 99ef7bd8b8f64037a2be959b05e6f6beafb3c3c1 | |
parent | 159d8ae5ad6c2b45a3c891cef89fe15cdaf46b5e (diff) | |
download | chromium_src-a0c036305b748e1617e56c624cb0f4c49c24e6e0.zip chromium_src-a0c036305b748e1617e56c624cb0f4c49c24e6e0.tar.gz chromium_src-a0c036305b748e1617e56c624cb0f4c49c24e6e0.tar.bz2 |
VP8Decoder: Honor show_frame stream element.
Don't send frames with show_frame syntax element set to false to display.
BUG=chrome-os-partner:35953
TEST=video playback, vdatest
Review URL: https://codereview.chromium.org/963053002
Cr-Commit-Position: refs/heads/master@{#318559}
-rw-r--r-- | content/common/gpu/media/vp8_decoder.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/common/gpu/media/vp8_decoder.cc b/content/common/gpu/media/vp8_decoder.cc index a2fe85c..258372e 100644 --- a/content/common/gpu/media/vp8_decoder.cc +++ b/content/common/gpu/media/vp8_decoder.cc @@ -171,8 +171,9 @@ bool VP8Decoder::DecodeAndOutputCurrentFrame() { golden_frame_, alt_frame_)) return false; - if (!accelerator_->OutputPicture(curr_pic_)) - return false; + if (curr_frame_hdr_->show_frame) + if (!accelerator_->OutputPicture(curr_pic_)) + return false; RefreshReferenceFrames(); |