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
@ -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…
x
Reference in New Issue
Block a user