[vlc-devel] commit: avcodec: initialize fmt_in.video.i_aspect to 0 (Ilkka Ollakka )
git version control
git at videolan.org
Tue Oct 6 23:22:49 CEST 2009
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Oct 7 00:20:52 2009 +0300| [9810e995c431a150894fb2fa164dd66635e9cc8f] | committer: 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)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9810e995c431a150894fb2fa164dd66635e9cc8f
---
modules/codec/avcodec/video.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 13b0dba..8152771 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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 */
More information about the vlc-devel
mailing list