mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
avformat/iff: parse DPAN chunk
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a5c5ae5ed8
commit
7494b49780
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user