avformat/movenc: write pasp atom even if sar.num == sar.den

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-09-20 14:48:44 +02:00
parent 6d9a46e884
commit 88d79dbd16

View File

@ -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);
}