aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-05-19 12:42:41 +0200
committerPaul B Mahol <onemda@gmail.com>2016-05-19 17:02:06 +0200
commit7494b49780b2f97f85459044306fdfdf00c8ae5d (patch)
tree2fa14cba4bceb314ddafc31b0208f1da7326a25a
parenta5c5ae5ed855f65f33abf27ce2f5839e07c7c8e9 (diff)
downloadffmpeg-7494b49780b2f97f85459044306fdfdf00c8ae5d.tar.gz
avformat/iff: parse DPAN chunk
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavformat/iff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/iff.c b/libavformat/iff.c
index 275710b892..bf44170193 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -66,6 +66,7 @@
#define ID_ANIM MKTAG('A','N','I','M')
#define ID_ANHD MKTAG('A','N','H','D')
#define ID_DLTA MKTAG('D','L','T','A')
+#define ID_DPAN MKTAG('D','P','A','N')
#define ID_FORM MKTAG('F','O','R','M')
#define ID_FRM8 MKTAG('F','R','M','8')
@@ -556,6 +557,11 @@ static int iff_read_header(AVFormatContext *s)
case ID_ANHD:
break;
+ case ID_DPAN:
+ avio_skip(pb, 2);
+ st->duration = avio_rb16(pb);
+ break;
+
case ID_DPEL:
if (data_size < 4 || (data_size & 3))
return AVERROR_INVALIDDATA;