OSDN Git Service

lavf/mov: Read display aspect ratio from ares atom also for dnxhd.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 29 Sep 2016 13:29:03 +0000 (15:29 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 29 Sep 2016 13:29:03 +0000 (15:29 +0200)
Fixes aspect ratio of sample in ticket #2125.
Fixes aspect ratio of sample in ticket #5325.

libavformat/mov.c
libavformat/version.h
tests/ref/fate/dnxhd-mbaff

index 8b7bbf1..a15c8d1 100644 (file)
@@ -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);
index b0b5593..848403e 100644 (file)
@@ -33,7 +33,7 @@
 // Also please add any ticket numbers that you believe might be affected here
 #define LIBAVFORMAT_VERSION_MAJOR  57
 #define LIBAVFORMAT_VERSION_MINOR  51
-#define LIBAVFORMAT_VERSION_MICRO 100
+#define LIBAVFORMAT_VERSION_MICRO 101
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \
index d694cfe..8e95227 100644 (file)
@@ -2,5 +2,5 @@
 #media_type 0: video
 #codec_id 0: rawvideo
 #dimensions 0: 1440x1080
-#sar 0: 4/3
+#sar 0: 1/1
 0,          0,          0,        1,  6220800, 0xe78198c0