avformat/mp3dec: Simplify checking for no-metadata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-09 12:54:30 +02:00
parent 6d1e792980
commit 8ab5bf512a

View File

@ -384,7 +384,7 @@ static int mp3_read_header(AVFormatContext *s)
ffiocontext(s->pb)->maxsize = -1;
off = avio_tell(s->pb);
if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
if (!av_dict_count(s->metadata))
ff_id3v1_read(s);
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL)