diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-11 13:16:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-11 13:21:11 +0200 |
commit | 2832a82e17e906ec0abba379917746967038928b (patch) | |
tree | 96cab66a3ee2432c149d1039f20a2014e7869479 /libavformat/gxfenc.c | |
parent | a6ca08f1af31badb7fef93bc1cbfa78bffae6be7 (diff) | |
download | ffmpeg-2832a82e17e906ec0abba379917746967038928b.tar.gz |
avformat/gxfenc: Clear nb_fields on array deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r-- | libavformat/gxfenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 5e7b281c29..5fa510057d 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; } |