diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-11-16 18:22:33 +0200 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-11-16 18:22:33 +0200 |
commit | 9a314a2430048b4a48d471acc79c64c97d46cf6f (patch) | |
tree | 08b6a7012399ea80f366daf50bd5fb9fe61be493 | |
parent | 26f895f4a833535f8dee16e2a556fb93cd504883 (diff) | |
download | gst-vaapi-9a314a2430048b4a48d471acc79c64c97d46cf6f.tar.gz |
decoder: vp9: Avoid unnecessary show_frame flag checking while doing picture output
We always set GST_VAAPI_PICTURE_FLAG_SKIPPED for DECODE_ONLY frames and the
gstvaapidecoder base calss is reponsible for handling those frames later on.
No need for explicit verification of frame header's show_frame in order to
do picture outputing.
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_vp9.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c index b97487a5..b9e023d6 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vp9.c @@ -485,9 +485,8 @@ decode_current_picture (GstVaapiDecoderVp9 * decoder) update_ref_frames (decoder); ret: - if (frame_hdr->show_frame) - if (!gst_vaapi_picture_output (picture)) - goto error; + if (!gst_vaapi_picture_output (picture)) + goto error; gst_vaapi_picture_replace (&priv->current_picture, NULL); |