diff dv.c @ 3759:27537074f2a9 libavformat

convert every muxer/demuxer to write/read sample_aspect_ratio from/to the corresponding AVStream instead of AVCodecContext
author aurel
date Sat, 23 Aug 2008 23:43:20 +0000
parents 7a0230981402
children 6f3cdf5fb948
line wrap: on
line diff
--- a/dv.c	Sat Aug 23 23:13:58 2008 +0000
+++ b/dv.c	Sat Aug 23 23:43:20 2008 +0000
@@ -247,7 +247,7 @@
         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);