[FFmpeg-cvslog] hevc: Initialize sample aspect to valid value.

Reimar Döffinger git at videolan.org
Sun Oct 20 12:17:36 CEST 2013


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Thu Oct 17 21:01:44 2013 +0200| [c9a22d69afc74f31462c321a64f493587e9f28cd] | committer: Reimar Döffinger

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 at gmx.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c9a22d69afc74f31462c321a64f493587e9f28cd
---

 libavcodec/hevc_ps.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index b44b7fe..20cb4eb 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -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);



More information about the ffmpeg-cvslog mailing list