From: Good Guy Date: Wed, 28 Dec 2022 20:02:30 +0000 (-0700) Subject: Credit Andrew fix for tablet aspect ratio when metadata X-Git-Tag: 2022-12~1 X-Git-Url: https://git.cinelerra-gg.org/git/?a=commitdiff_plain;h=2ed226ae2be30458e16669f2bf6f05b72470a4a5;p=goodguy%2Fcinelerra.git Credit Andrew fix for tablet aspect ratio when metadata --- diff --git a/cinelerra-5.1/cinelerra/ffmpeg.C b/cinelerra-5.1/cinelerra/ffmpeg.C index ee3edba5..a9f42178 100644 --- a/cinelerra-5.1/cinelerra/ffmpeg.C +++ b/cinelerra-5.1/cinelerra/ffmpeg.C @@ -3638,7 +3638,7 @@ float FFMPEG::ff_aspect_ratio(int stream) AVCodecParameters *par = ffvideo[stream]->st->codecpar; AVRational dar; AVRational sar = av_guess_sample_aspect_ratio(fmt_ctx, strm, NULL); - if (sar.num) { + if (sar.num && ffvideo[stream]->get_rotation_angle() == 0) { av_reduce(&dar.num, &dar.den, par->width * sar.num, par->height * sar.den,