]> git.sesse.net Git - vlc/commitdiff
avcodec: initialize fmt_in.video.i_aspect to 0
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 6 Oct 2009 21:20:52 +0000 (00:20 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 6 Oct 2009 21:22:04 +0000 (00:22 +0300)
This should help on aspect-ratio issues with apple hd mov-trailers (when
streaming/transcoding)

modules/codec/avcodec/video.c

index 13b0dbafff6f977bc5491913d37731c5cc0b3df0..8152771b80aa4e55848d61db120a9aa5db37d920 100644 (file)
@@ -335,6 +335,7 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
 
     /* Set output properties */
     p_dec->fmt_out.i_cat = VIDEO_ES;
+    p_dec->fmt_in.video.i_aspect = 0;
     if( GetVlcChroma( &p_dec->fmt_out.video, p_context->pix_fmt ) != VLC_SUCCESS )
     {
         /* we are doomed. but not really, because most codecs set their pix_fmt later on */