mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avformat/ty: fix memory leaks
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6665938ca8
commit
a38b14a432
@ -764,6 +764,16 @@ static int ty_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int ty_read_close(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
TYDemuxContext *ty = s->priv_data;
|
||||||
|
|
||||||
|
av_freep(&ty->seq_table);
|
||||||
|
av_freep(&ty->rec_hdrs);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
AVInputFormat ff_ty_demuxer = {
|
AVInputFormat ff_ty_demuxer = {
|
||||||
.name = "ty",
|
.name = "ty",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("TiVo TY Stream"),
|
.long_name = NULL_IF_CONFIG_SMALL("TiVo TY Stream"),
|
||||||
@ -771,6 +781,7 @@ AVInputFormat ff_ty_demuxer = {
|
|||||||
.read_probe = ty_probe,
|
.read_probe = ty_probe,
|
||||||
.read_header = ty_read_header,
|
.read_header = ty_read_header,
|
||||||
.read_packet = ty_read_packet,
|
.read_packet = ty_read_packet,
|
||||||
|
.read_close = ty_read_close,
|
||||||
.extensions = "ty,ty+",
|
.extensions = "ty,ty+",
|
||||||
.flags = AVFMT_TS_DISCONT,
|
.flags = AVFMT_TS_DISCONT,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user