aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-09 12:54:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-17 04:15:56 +0200
commit8ab5bf512a5705975f698f799979a77d748a7313 (patch)
treead69ce4e86e4b796889e381ac01fdb66c4e709a3 /libavformat/mp3dec.c
parent6d1e792980cd3d1bfed7840e80764fa403df17ab (diff)
downloadffmpeg-8ab5bf512a5705975f698f799979a77d748a7313.tar.gz
avformat/mp3dec: Simplify checking for no-metadata
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 9205abebc4..72c049edaf 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -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)