[MPlayer-cvslog] r35683 - trunk/libmpdemux/muxer_lavf.c
reimar
subversion at mplayerhq.hu
Sat Dec 15 20:33:19 CET 2012
Author: reimar
Date: Sat Dec 15 20:33:19 2012
New Revision: 35683
Log:
lavf muxer: set up stream aspect.
Modified:
trunk/libmpdemux/muxer_lavf.c
Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c Fri Dec 14 18:51:19 2012 (r35682)
+++ trunk/libmpdemux/muxer_lavf.c Sat Dec 15 20:33:19 2012 (r35683)
@@ -228,6 +228,10 @@ static void fix_parameters(muxer_stream_
ctx->bit_rate = 800000;
ctx->time_base.den = stream->h.dwRate;
ctx->time_base.num = stream->h.dwScale;
+ if (stream->aspect)
+ ctx->sample_aspect_ratio =
+ spriv->avstream->sample_aspect_ratio = av_d2q(stream->aspect * ctx->height / ctx->width, 255);
+
if(stream->bih->biSize > sizeof(*stream->bih))
{
ctx->extradata_size = stream->bih->biSize - sizeof(*stream->bih);
More information about the MPlayer-cvslog
mailing list