mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/aiffdec: give friendly message if compressed codec tag is unsupported
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1f36b43c28
commit
f7751a5e53
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user