mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/4xm: Simplify cleanup after read_header failure
by setting the FF_FMT_INIT_CLEANUP flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0d81c0a10e
commit
f7fb09cb00
|
@ -283,7 +283,6 @@ static int fourxm_read_header(AVFormatContext *s)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
fail:
|
fail:
|
||||||
av_freep(&fourxm->tracks);
|
|
||||||
av_free(header);
|
av_free(header);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -397,6 +396,7 @@ const AVInputFormat ff_fourxm_demuxer = {
|
||||||
.name = "4xm",
|
.name = "4xm",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("4X Technologies"),
|
.long_name = NULL_IF_CONFIG_SMALL("4X Technologies"),
|
||||||
.priv_data_size = sizeof(FourxmDemuxContext),
|
.priv_data_size = sizeof(FourxmDemuxContext),
|
||||||
|
.flags_internal = FF_FMT_INIT_CLEANUP,
|
||||||
.read_probe = fourxm_probe,
|
.read_probe = fourxm_probe,
|
||||||
.read_header = fourxm_read_header,
|
.read_header = fourxm_read_header,
|
||||||
.read_packet = fourxm_read_packet,
|
.read_packet = fourxm_read_packet,
|
||||||
|
|
Loading…
Reference in New Issue