Commit 9810e995 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: initialize fmt_in.video.i_aspect to 0

This should help on aspect-ratio issues with apple hd mov-trailers (when
streaming/transcoding)
parent 6b55ee51
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment