diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-10-25 12:48:36 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-10-25 14:07:03 +0100 |
commit | f7751a5e5368bfa99867404a85ae17f0cadc78f0 (patch) | |
tree | 429fe44ae61fb35fc35a96d5e3c2865f4ad8faca /libavformat/aiffdec.c | |
parent | 1f36b43c280d36a403874e54a017472a3b2f472a (diff) | |
download | ffmpeg-f7751a5e5368bfa99867404a85ae17f0cadc78f0.tar.gz |
avformat/aiffdec: give friendly message if compressed codec tag is unsupported
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/aiffdec.c')
-rw-r--r-- | libavformat/aiffdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index f26951dcf8..8d2701a184 100644 --- a/libavformat/aiffdec.c +++ b/libavformat/aiffdec.c @@ -128,6 +128,11 @@ static int get_aiff_header(AVFormatContext *s, int size, } else if (version == AIFF_C_VERSION1) { codec->codec_tag = avio_rl32(pb); codec->codec_id = ff_codec_get_id(ff_codec_aiff_tags, codec->codec_tag); + if (codec->codec_id == AV_CODEC_ID_NONE) { + char tag[32]; + av_get_codec_tag_string(tag, sizeof(tag), codec->codec_tag); + avpriv_request_sample(s, "unknown or unsupported codec tag: %s", tag); + } size -= 4; } |