]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ffmenc.c
Fix the logic to access the location of a string to free when setting
[ffmpeg] / libavformat / ffmenc.c
index 7e197a57ae0368c499e76bc8531ea7c95dacffb1..1e78306b7d3c378d05b39d78187186436b8e88b7 100644 (file)
@@ -189,7 +189,7 @@ static int ffm_write_header(AVFormatContext *s)
 static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
 {
     int64_t dts;
-    uint8_t header[FRAME_HEADER_SIZE];
+    uint8_t header[FRAME_HEADER_SIZE+4];
     int header_size = FRAME_HEADER_SIZE;
 
     dts = s->timestamp + pkt->dts;