mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/tiertexseq: Move seq_read_close() up so it can be used for cleanup
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
561cc161ca
commit
902b06f2d4
|
@ -182,6 +182,17 @@ static int seq_parse_frame_data(SeqDemuxContext *seq, AVIOContext *pb)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int seq_read_close(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
SeqDemuxContext *seq = s->priv_data;
|
||||||
|
|
||||||
|
for (i = 0; i < SEQ_NUM_FRAME_BUFFERS; i++)
|
||||||
|
av_freep(&seq->frame_buffers[i].data);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int seq_read_header(AVFormatContext *s)
|
static int seq_read_header(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
int i, rc;
|
int i, rc;
|
||||||
|
@ -295,17 +306,6 @@ static int seq_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int seq_read_close(AVFormatContext *s)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
SeqDemuxContext *seq = s->priv_data;
|
|
||||||
|
|
||||||
for (i = 0; i < SEQ_NUM_FRAME_BUFFERS; i++)
|
|
||||||
av_freep(&seq->frame_buffers[i].data);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
AVInputFormat ff_tiertexseq_demuxer = {
|
AVInputFormat ff_tiertexseq_demuxer = {
|
||||||
.name = "tiertexseq",
|
.name = "tiertexseq",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ"),
|
.long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ"),
|
||||||
|
|
Loading…
Reference in New Issue