aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2008-08-23 23:43:20 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-08-23 23:43:20 +0000
commit5972945197d44e8bde6a986b9cba2e8196cfbc9c (patch)
tree94ba719e6f5efb53fc18d7eb38ccb96d25e7b194 /libavformat/dv.c
parentc30a4489b444020ef951c1f0583afd8679c07c78 (diff)
downloadffmpeg-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/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 2f9171789b..0670e5149c 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -247,7 +247,7 @@ static int dv_extract_video_info(DVDemuxContext *c, uint8_t* frame)
apt = frame[4] & 0x07;
is16_9 = (vsc_pack && ((vsc_pack[2] & 0x07) == 0x02 ||
(!apt && (vsc_pack[2] & 0x07) == 0x07)));
- avctx->sample_aspect_ratio = c->sys->sar[is16_9];
+ c->vst->sample_aspect_ratio = c->sys->sar[is16_9];
avctx->bit_rate = av_rescale(c->sys->frame_size * 8,
c->sys->frame_rate,
c->sys->frame_rate_base);