diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-23 22:25:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-23 23:15:09 +0100 |
commit | 82d79289db03ddc85ea6d5c81a5151e1ad64b2b5 (patch) | |
tree | f882aff50823f797468f0547ef847bc328bd7584 /libavformat/avidec.c | |
parent | 285485ac5f896cc450e0183daa41a8ee63d17076 (diff) | |
download | ffmpeg-82d79289db03ddc85ea6d5c81a5151e1ad64b2b5.tar.gz |
avformat: Allocate duration_error separately
This significantly reduces the memory needed per AVStream when the
array is not needed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 2f248b1b2f..00ac3de2af 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -484,6 +484,8 @@ static int avi_read_header(AVFormatContext *s) ast = s->streams[0]->priv_data; av_freep(&s->streams[0]->codec->extradata); av_freep(&s->streams[0]->codec); + if (s->streams[0]->info) + av_freep(&s->streams[0]->info->duration_error); av_freep(&s->streams[0]->info); av_freep(&s->streams[0]); s->nb_streams = 0; |