[FFmpeg-cvslog] avformat/mp3dec: Simplify checking for no-metadata

Andreas Rheinhardt git at videolan.org
Fri Sep 17 16:08:16 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep  9 12:54:30 2021 +0200| [8ab5bf512a5705975f698f799979a77d748a7313] | committer: Andreas Rheinhardt

avformat/mp3dec: Simplify checking for no-metadata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ab5bf512a5705975f698f799979a77d748a7313
---

 libavformat/mp3dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)



More information about the ffmpeg-cvslog mailing list