ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sun Oct 25 12:48:36 2015 +0100| [f7751a5e5368bfa99867404a85ae17f0cadc78f0] | committer: Paul B Mahol
avformat/aiffdec: give friendly message if compressed codec tag is unsupported Signed-off-by: Paul B Mahol <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7751a5e5368bfa99867404a85ae17f0cadc78f0 --- libavformat/aiffdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c index f26951d..8d2701a 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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
