lavf: fix usages of av_get_codec_tag_string()
This commit is contained in:
@@ -128,11 +128,9 @@ static int get_aiff_header(AVFormatContext *s, int size,
|
||||
} else if (version == AIFF_C_VERSION1) {
|
||||
par->codec_tag = avio_rl32(pb);
|
||||
par->codec_id = ff_codec_get_id(ff_codec_aiff_tags, par->codec_tag);
|
||||
if (par->codec_id == AV_CODEC_ID_NONE) {
|
||||
char tag[32];
|
||||
av_get_codec_tag_string(tag, sizeof(tag), par->codec_tag);
|
||||
avpriv_request_sample(s, "unknown or unsupported codec tag: %s", tag);
|
||||
}
|
||||
if (par->codec_id == AV_CODEC_ID_NONE)
|
||||
avpriv_request_sample(s, "unknown or unsupported codec tag: %s",
|
||||
av_fourcc2str(par->codec_tag));
|
||||
size -= 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user