[FFmpeg-cvslog] avformat/mxfdec: do not log warning of multiple ANC packets if count is 0

Gavin Smith git at videolan.org
Thu Oct 6 11:26:16 EEST 2022


ffmpeg | branch: master | Gavin Smith <gcs584-at-yahoo.com at ffmpeg.org> | Fri Aug  5 00:03:38 2022 +0100| [2c2aaa5bd055a84856225171a260641c72e68d99] | committer: Tomas Härdin

avformat/mxfdec: do not log warning of multiple ANC packets if count is 0

Some NLVEs may insert a KLV packet for EIA-608 data even though
the number of encapsulated ANC packets is zero.

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

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

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index b1ab90f25f..e6118e141d 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -521,7 +521,7 @@ static int mxf_get_eia608_packet(AVFormatContext *s, AVStream *st, AVPacket *pkt
     int did, sdid, data_length;
     int i, ret;
 
-    if (count != 1)
+    if (count > 1)
         av_log(s, AV_LOG_WARNING, "unsupported multiple ANC packets (%d) per KLV packet\n", count);
 
     for (i = 0; i < count; i++) {



More information about the ffmpeg-cvslog mailing list