mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-04 01:36:07 +00:00
libavformat/lafdec: free data
Fixes: memleak Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ad95d9c855
commit
f4b4e16641
@ -252,6 +252,15 @@ again:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int laf_read_close(AVFormatContext *ctx)
|
||||
{
|
||||
LAFContext *s = ctx->priv_data;
|
||||
|
||||
av_freep(&s->data);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int laf_read_seek(AVFormatContext *ctx, int stream_index,
|
||||
int64_t timestamp, int flags)
|
||||
{
|
||||
@ -269,7 +278,9 @@ const AVInputFormat ff_laf_demuxer = {
|
||||
.read_probe = laf_probe,
|
||||
.read_header = laf_read_header,
|
||||
.read_packet = laf_read_packet,
|
||||
.read_close = laf_read_close,
|
||||
.read_seek = laf_read_seek,
|
||||
.extensions = "laf",
|
||||
.flags = AVFMT_GENERIC_INDEX,
|
||||
.flags_internal = FF_FMT_INIT_CLEANUP,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user