Skip to content
Snippets Groups Projects
Commit b9f33ad3 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit 'e518cb86'


* commit 'e518cb86':
  jvdec: Fix memory leak of jv->frames

See: 596814f9
Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents d2344afb e518cb86
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,15 @@ static int read_probe(AVProbeData *pd) ...@@ -59,6 +59,15 @@ static int read_probe(AVProbeData *pd)
return 0; return 0;
} }
static int read_close(AVFormatContext *s)
{
JVDemuxContext *jv = s->priv_data;
av_freep(&jv->frames);
return 0;
}
static int read_header(AVFormatContext *s) static int read_header(AVFormatContext *s)
{ {
JVDemuxContext *jv = s->priv_data; JVDemuxContext *jv = s->priv_data;
...@@ -221,15 +230,6 @@ static int read_seek(AVFormatContext *s, int stream_index, ...@@ -221,15 +230,6 @@ static int read_seek(AVFormatContext *s, int stream_index,
return 0; return 0;
} }
static int read_close(AVFormatContext *s)
{
JVDemuxContext *jv = s->priv_data;
av_freep(&jv->frames);
return 0;
}
AVInputFormat ff_jv_demuxer = { AVInputFormat ff_jv_demuxer = {
.name = "jv", .name = "jv",
.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"), .long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment