avformat/gxfenc: Clear nb_fields on array deallocation
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 11:16:03 +0000 (13:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Sep 2013 11:21:11 +0000 (13:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/gxfenc.c

index 5e7b281..5fa5100 100644 (file)
@@ -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;
             }