[FFmpeg-devel] [PATCH 2/2] avformat/movenc: Check packet in mov_write_single_packet() too
Michael Niedermayer
michael at niedermayer.cc
Fri Sep 16 01:37:03 EEST 2016
Fixes assertion failure
Found-by: durandal117
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavformat/movenc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 2d8fc48..b704f49 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -4971,6 +4971,10 @@ static int mov_write_single_packet(AVFormatContext *s, AVPacket *pkt)
int64_t frag_duration = 0;
int size = pkt->size;
+ int ret = check_pkt(s, pkt);
+ if (ret < 0)
+ return ret;
+
if (mov->flags & FF_MOV_FLAG_FRAG_DISCONT) {
int i;
for (i = 0; i < s->nb_streams; i++)
--
2.9.3
More information about the ffmpeg-devel
mailing list