projects
/
goodguy
/
cinelerra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
175a731
)
Credit Andrew fix for tablet aspect ratio when metadata
author
Good Guy
<good1.2guy@gmail.com>
Wed, 28 Dec 2022 20:02:30 +0000
(13:02 -0700)
committer
Good Guy
<good1.2guy@gmail.com>
Wed, 28 Dec 2022 20:02:30 +0000
(13:02 -0700)
cinelerra-5.1/cinelerra/ffmpeg.C
patch
|
blob
|
history
diff --git
a/cinelerra-5.1/cinelerra/ffmpeg.C
b/cinelerra-5.1/cinelerra/ffmpeg.C
index ee3edba59510a2f3cce711218a45fa9f1a865519..a9f421785bdb8b9013fe227b49eabd44fe0e801a 100644
(file)
--- 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,