aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-29 15:29:03 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-29 15:29:03 +0200
commitfcce25ee5d2f3fbe4848dee4c3d11b195d2d8126 (patch)
tree5c7df816e5bc1422551b600eb89427bd50538769 /libavformat/mov.c
parent29a76ff525e34e5f5e27c5db86c281f4502435cf (diff)
downloadffmpeg-fcce25ee5d2f3fbe4848dee4c3d11b195d2d8126.tar.gz
lavf/mov: Read display aspect ratio from ares atom also for dnxhd.
Fixes aspect ratio of sample in ticket #2125. Fixes aspect ratio of sample in ticket #5325.
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 8b7bbf10d1..a15c8d128b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1487,7 +1487,8 @@ static int mov_read_ares(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (cid == 0xd4d || cid == 0xd4e)
par->width = 1440;
return 0;
- } else if (par->codec_tag == MKTAG('A', 'V', 'd', '1') &&
+ } else if ((par->codec_tag == MKTAG('A', 'V', 'd', '1') ||
+ par->codec_tag == MKTAG('A', 'V', 'd', 'n')) &&
atom.size >= 24) {
int num, den;
avio_skip(pb, 12);