mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
vtdec: Set reorder length to 0 if we can't calculate it
Instead of leaving it at whatever value it had before.
This commit is contained in:
parent
302034ac4c
commit
3cead041f6
1 changed files with 2 additions and 0 deletions
|
@ -729,6 +729,8 @@ compute_h264_decode_picture_buffer_length (GstVtdec * vtdec,
|
||||||
int width_in_mb_s = vtdec->video_info.width / dpb_mb_size;
|
int width_in_mb_s = vtdec->video_info.width / dpb_mb_size;
|
||||||
int height_in_mb_s = vtdec->video_info.height / dpb_mb_size;
|
int height_in_mb_s = vtdec->video_info.height / dpb_mb_size;
|
||||||
|
|
||||||
|
*length = 0;
|
||||||
|
|
||||||
if (!parse_h264_profile_and_level_from_codec_data (vtdec, codec_data,
|
if (!parse_h264_profile_and_level_from_codec_data (vtdec, codec_data,
|
||||||
&profile, &level))
|
&profile, &level))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue