mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
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:
parent
6d9a46e884
commit
88d79dbd16
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user