diff mov.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 772eba9f4b30
children bae4b42939cc
line wrap: on
line diff
--- a/mov.c	Sat Aug 23 23:13:58 2008 +0000
+++ b/mov.c	Sat Aug 23 23:43:20 2008 +0000
@@ -1478,7 +1478,7 @@
                 ((int64_t) display_matrix[2][i] << 16);
 
         //sample aspect ratio is new width/height divided by old width/height
-        st->codec->sample_aspect_ratio = av_d2q(
+        st->sample_aspect_ratio = av_d2q(
             ((double) disp_transform[0] * height) /
             ((double) disp_transform[1] * width), INT_MAX);
     }