[FFmpeg-devel] [PATCH 07/17] avformat/mxfenc: Error out when receiving invalid data
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Nov 9 20:01:45 EET 2021
(Unless the packet has a size of zero, the packet will run afoul
of the cbr_index check a few lines below.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/mxfenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index a6535eb43f..c20ba9bfca 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -2151,7 +2151,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt)
// Check for minimal frame size
if (pkt->size < 120000)
- return -1;
+ return 0;
apt = pkt->data[4] & 0x7;
vs_pack = pkt->data + 80*5 + 48;
--
2.30.2
More information about the ffmpeg-devel
mailing list