Credit Andrew fix for tablet aspect ratio when metadata
authorGood Guy <good1.2guy@gmail.com>
Wed, 28 Dec 2022 20:02:30 +0000 (13:02 -0700)
committerGood Guy <good1.2guy@gmail.com>
Wed, 28 Dec 2022 20:02:30 +0000 (13:02 -0700)
cinelerra-5.1/cinelerra/ffmpeg.C

index ee3edba59510a2f3cce711218a45fa9f1a865519..a9f421785bdb8b9013fe227b49eabd44fe0e801a 100644 (file)
@@ -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,