diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-23 23:43:20 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-23 23:43:20 +0000 |
commit | 5972945197d44e8bde6a986b9cba2e8196cfbc9c (patch) | |
tree | 94ba719e6f5efb53fc18d7eb38ccb96d25e7b194 /libavformat/avienc.c | |
parent | c30a4489b444020ef951c1f0583afd8679c07c78 (diff) | |
download | ffmpeg-5972945197d44e8bde6a986b9cba2e8196cfbc9c.tar.gz |
convert every muxer/demuxer to write/read sample_aspect_ratio from/to
the corresponding AVStream instead of AVCodecContext
Originally committed as revision 14933 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 63ada5d35a..3dabd3a371 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -284,10 +284,10 @@ static int avi_write_header(AVFormatContext *s) } if( stream->codec_type == CODEC_TYPE_VIDEO - && stream->sample_aspect_ratio.num>0 - && stream->sample_aspect_ratio.den>0){ + && s->streams[i]->sample_aspect_ratio.num>0 + && s->streams[i]->sample_aspect_ratio.den>0){ int vprp= start_tag(pb, "vprp"); - AVRational dar = av_mul_q(stream->sample_aspect_ratio, + AVRational dar = av_mul_q(s->streams[i]->sample_aspect_ratio, (AVRational){stream->width, stream->height}); int num, den; av_reduce(&num, &den, dar.num, dar.den, 0xFFFF); |