Commit f7751a5e authored by Paul B Mahol's avatar Paul B Mahol

avformat/aiffdec: give friendly message if compressed codec tag is unsupported

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1f36b43c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment