Commit 2832a82e authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/gxfenc: Clear nb_fields on array deallocation

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a6ca08f1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment