aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-11 13:16:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-11 13:21:11 +0200
commit2832a82e17e906ec0abba379917746967038928b (patch)
tree96cab66a3ee2432c149d1039f20a2014e7869479 /libavformat
parenta6ca08f1af31badb7fef93bc1cbfa78bffae6be7 (diff)
downloadffmpeg-2832a82e17e906ec0abba379917746967038928b.tar.gz
avformat/gxfenc: Clear nb_fields on array deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/gxfenc.c1
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;
}