[FFmpeg-cvslog] Don't throw an error when attached picture isn't recognized.

Dale Curtis git at videolan.org
Thu Mar 28 19:10:35 EET 2024


ffmpeg | branch: master | Dale Curtis <dalecurtis at chromium.org> | Mon Apr 10 10:52:08 2023 -0700| [bba6df9ac7bd8386d92e1a7f5c737ca4e575fccf] | committer: Michael Niedermayer

Don't throw an error when attached picture isn't recognized.

The MIME type field is required per the FLAC standard, but it's
not an error just because ffmpeg doesn't recognize it.

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/flac_picture.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/flac_picture.c b/libavformat/flac_picture.c
index b33fee75b4..20df0192d4 100644
--- a/libavformat/flac_picture.c
+++ b/libavformat/flac_picture.c
@@ -91,8 +91,6 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t **bufp, int buf_size,
     if (id == AV_CODEC_ID_NONE) {
         av_log(s, AV_LOG_ERROR, "Unknown attached picture mimetype: %s.\n",
                mimetype);
-        if (s->error_recognition & AV_EF_EXPLODE)
-            return AVERROR_INVALIDDATA;
         return 0;
     }
 



More information about the ffmpeg-cvslog mailing list