mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
avformat/gxfenc: Clear nb_fields on array deallocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a6ca08f1af
commit
2832a82e17
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user