In mov muxer, write reduced sample aspect ratio values in pasp
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 8 Sep 2010 20:22:02 +0000 (20:22 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 8 Sep 2010 20:22:02 +0000 (20:22 +0000)
Originally committed as revision 25082 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/movenc.c

index 5b3e4f5..7961d44 100644 (file)
@@ -755,8 +755,8 @@ static int mov_write_pasp_tag(ByteIOContext *pb, MOVTrack *track)
 
     put_be32(pb, 16);
     put_tag(pb, "pasp");
-    put_be32(pb, track->enc->sample_aspect_ratio.num);
-    put_be32(pb, track->enc->sample_aspect_ratio.den);
+    put_be32(pb, sar.num);
+    put_be32(pb, sar.den);
     return 16;
 }