mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
libavformat/iff: print error message when DSDIFF compression type is not supported
Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ee2e5acdb1
commit
1964251be7
@ -285,7 +285,13 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream *st, uint64_t eof)
|
|||||||
case MKTAG('C','M','P','R'):
|
case MKTAG('C','M','P','R'):
|
||||||
if (size < 4)
|
if (size < 4)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
st->codec->codec_id = ff_codec_get_id(dsd_codec_tags, avio_rl32(pb));
|
tag = avio_rl32(pb);
|
||||||
|
st->codec->codec_id = ff_codec_get_id(dsd_codec_tags, tag);
|
||||||
|
if (!st->codec->codec_id) {
|
||||||
|
av_log(s, AV_LOG_ERROR, "'%c%c%c%c' compression is not supported\n",
|
||||||
|
tag&0xFF, (tag>>8)&0xFF, (tag>>16)&0xFF, (tag>>24)&0xFF);
|
||||||
|
return AVERROR_PATCHWELCOME;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MKTAG('F','S',' ',' '):
|
case MKTAG('F','S',' ',' '):
|
||||||
|
Loading…
Reference in New Issue
Block a user