1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

hevc: Initialize sample aspect to valid value.

Without this, it is 0/0 by default, which is not allowed.
This sets it to 0/1, which means "undefined".

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
Reimar Döffinger 2013-10-17 21:01:44 +02:00
parent 1b5a52f425
commit c9a22d69af

View File

@ -755,6 +755,7 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
sps->sps_temporal_mvp_enabled_flag = get_bits1(gb);
sps->sps_strong_intra_smoothing_enable_flag = get_bits1(gb);
sps->vui.sar = vui_sar[0];
vui_present = get_bits1(gb);
if (vui_present)
decode_vui(s, sps);