aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-17 17:04:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-05-20 13:52:41 +0200
commitf3d206d25ffdb02ba30b9bf37720f94819f9be3e (patch)
tree94a87e39d2a69f8574b5ef918698da044b085167 /libavformat/mpc.c
parent482afe8f3f7b9ea17521371c53e9d783be95020a (diff)
downloadffmpeg-f3d206d25ffdb02ba30b9bf37720f94819f9be3e.tar.gz
fftools, avfilter, avformat: Simplify check for "is dictionary empty?"
Reviewed-by: epirat07@gmail.com Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r--libavformat/mpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c
index 60cb768ab6..1e0e170c7d 100644
--- a/libavformat/mpc.c
+++ b/libavformat/mpc.c
@@ -112,7 +112,7 @@ static int mpc_read_header(AVFormatContext *s)
if (s->pb->seekable & AVIO_SEEKABLE_NORMAL) {
int64_t pos = avio_tell(s->pb);
ff_ape_parse_tag(s);
- if (!av_dict_get(s->metadata, "", NULL, AV_DICT_IGNORE_SUFFIX))
+ if (av_dict_count(s->metadata) == 0)
ff_id3v1_read(s);
avio_seek(s->pb, pos, SEEK_SET);
}