[FFmpeg-devel] [PATCH] avformat/movenc: write pasp atom even if sar.num == sar.den

Paul B Mahol onemda at gmail.com
Tue Sep 20 16:03:25 EEST 2016


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavformat/movenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index aa4a076..0382309 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -1837,8 +1837,7 @@ static int mov_write_video_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *tr
             av_log(mov->fc, AV_LOG_WARNING, "Not writing 'colr' atom. Format is not MOV or MP4.\n");
     }
 
-    if (track->par->sample_aspect_ratio.den && track->par->sample_aspect_ratio.num &&
-        track->par->sample_aspect_ratio.den != track->par->sample_aspect_ratio.num) {
+    if (track->par->sample_aspect_ratio.den && track->par->sample_aspect_ratio.num) {
         mov_write_pasp_tag(pb, track);
     }
 
-- 
2.5.0



More information about the ffmpeg-devel mailing list