[PATCH 2/2] store pasp atom for all types of quicktime movie

Maksym Veremeyenko verem
Mon Feb 14 09:52:45 CET 2011


---
 libavformat/movenc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index b05fcf0..39084d2 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -839,8 +839,7 @@ static int mov_write_video_tag(ByteIOContext *pb, MOVTrack *track)
     } else if(track->vosLen > 0)
         mov_write_glbl_tag(pb, track);
 
-    if (track->mode == MODE_MOV &&
-        track->enc->sample_aspect_ratio.den && track->enc->sample_aspect_ratio.num &&
+    if (track->enc->sample_aspect_ratio.den && track->enc->sample_aspect_ratio.num &&
         track->enc->sample_aspect_ratio.den != track->enc->sample_aspect_ratio.num) {
         mov_write_pasp_tag(pb, track);
     }
-- 
1.7.4


--------------000207010502020105090000--



More information about the ffmpeg-devel mailing list