# HG changeset patch # User reimar # Date 1355599999 0 # Node ID ba53cfe2547bd5d394fcb644d52ab0925bc9c34b # Parent dc5355a5b42f6ee88a188b0de87fcaa69520b961 lavf muxer: set up stream aspect. diff -r dc5355a5b42f -r ba53cfe2547b libmpdemux/muxer_lavf.c --- a/libmpdemux/muxer_lavf.c Fri Dec 14 17:51:19 2012 +0000 +++ b/libmpdemux/muxer_lavf.c Sat Dec 15 19:33:19 2012 +0000 @@ -228,6 +228,10 @@ 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);