[FFmpeg-cvslog] lavc/vorbis_parser: ignore unrecognized packet types

rcombs git at videolan.org
Tue Mar 28 23:47:03 EEST 2023


ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Tue Mar 28 16:29:46 2023 -0400| [e0835b4878f4f866a540e739683411d72c91f431] | committer: rcombs

lavc/vorbis_parser: ignore unrecognized packet types

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

 libavcodec/vorbis_parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c
index a7d15d4ce9..d2c9e647ce 100644
--- a/libavcodec/vorbis_parser.c
+++ b/libavcodec/vorbis_parser.c
@@ -234,7 +234,8 @@ int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf,
             else if (buf[0] == 5)
                 *flags |= VORBIS_FLAG_SETUP;
             else
-                goto bad_packet;
+                av_log(s, AV_LOG_VERBOSE, "Ignoring packet with unknown type %u\n",
+                       buf[0]);
 
             /* Special packets have no duration. */
             return 0;



More information about the ffmpeg-cvslog mailing list