]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg.c
Merge commit 'ad0c9f2d5d81e22207c6ccecc426bf7306acc327'
[ffmpeg] / ffmpeg.c
index 2ea36943942824411854e4ccf27037368120353d..07fde7a577bdbd43440e271a3e9568e1a730c99b 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -570,6 +570,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
                 memcpy(t, new_pkt.data, new_pkt.size);
                 memset(t + new_pkt.size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
                 new_pkt.data = t;
+                new_pkt.buf = NULL;
                 a = 1;
             } else
                 a = AVERROR(ENOMEM);