summaryrefslogtreecommitdiffstats
path: root/core/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-21 22:06:45 +0200
committerwm4 <wm4@nowhere>2013-05-21 22:07:13 +0200
commit64a78cf314379302e28ed8727c51aec82f9328a2 (patch)
treedd88a948f38df5cb09a7a7001729057272cfbe7c /core/mplayer.c
parentb477c68aa084d202de24dc02cb008871d218f976 (diff)
downloadmpv-64a78cf314379302e28ed8727c51aec82f9328a2.tar.bz2
mpv-64a78cf314379302e28ed8727c51aec82f9328a2.tar.xz
demux_lavf: workaround minor ffmpeg memory leak
The sequence of avcodec_alloc_context3() / avcodec_copy_context() / avcodec_close() / av_free() leaks some memory. So don't copy the context and use it directly. Originally avcodec_copy_context() was used to guarantee that libavformat can't update the fields of the context during demuxing in order to make things a little more robust, but it's not strictly needed, and ffmpeg/ffplay don't do this anyway. Still might make the situation worse should we move demuxing into a separate thread, though.
Diffstat (limited to 'core/mplayer.c')
0 files changed, 0 insertions, 0 deletions