[FFmpeg-cvslog] avformat/gxfenc: Clear nb_fields on array deallocation

Michael Niedermayer git at videolan.org
Wed Sep 11 13:29:54 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 11 13:16:03 2013 +0200| [2832a82e17e906ec0abba379917746967038928b] | committer: Michael Niedermayer

avformat/gxfenc: Clear nb_fields on array deallocation

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/gxfenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 5e7b281..5fa5100 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -968,6 +968,7 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
                                          gxf->flt_entries_nb + 500,
                                          sizeof(*gxf->flt_entries))) < 0) {
                 gxf->flt_entries_nb = 0;
+                gxf->nb_fields = 0;
                 av_log(s, AV_LOG_ERROR, "could not reallocate flt entries\n");
                 return err;
             }



More information about the ffmpeg-cvslog mailing list