mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Fix memory leak in FFM demuxer
Originally committed as revision 22431 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9a894c48ae
commit
2dc22a64b4
@ -512,6 +512,14 @@ static int ffm_probe(AVProbeData *p)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ffm_close(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < s->nb_streams; i++)
|
||||||
|
av_freep(&s->streams[i]->codec->rc_eq);
|
||||||
|
}
|
||||||
|
|
||||||
AVInputFormat ffm_demuxer = {
|
AVInputFormat ffm_demuxer = {
|
||||||
"ffm",
|
"ffm",
|
||||||
NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),
|
NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),
|
||||||
@ -519,6 +527,6 @@ AVInputFormat ffm_demuxer = {
|
|||||||
ffm_probe,
|
ffm_probe,
|
||||||
ffm_read_header,
|
ffm_read_header,
|
||||||
ffm_read_packet,
|
ffm_read_packet,
|
||||||
NULL,
|
ffm_close,
|
||||||
ffm_seek,
|
ffm_seek,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user