diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2011-11-05 18:20:44 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-22 16:13:00 +0200 |
commit | de3f6718124372f64443a0b86527c1abf86d6f8c (patch) | |
tree | 47fa11243c9ef41b661940f18cdc35fcff43535b /libmpcodecs/vd_ffmpeg.c | |
parent | a781fe14f729e0d3300e0e62aebbae1914d65cd4 (diff) | |
download | mpv-de3f6718124372f64443a0b86527c1abf86d6f8c.tar.bz2 mpv-de3f6718124372f64443a0b86527c1abf86d6f8c.tar.xz |
vd_ffmpeg, vf: fix crashes with some game formats
Fixes for palette allocation handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34304 b3059339-0415-0410-9bf9-f77b7e298cf2
This caused a crash with http://samples.ffmpeg.org/cdxl/fruit.cdxl if
direct rendering was used. (Which is rarely these days.)
With small changes: avoid av_freep() use, as this function is not sane.
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index d36e4122a0..343a26d8d3 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -583,9 +583,6 @@ static void release_buffer(struct AVCodecContext *avctx, AVFrame *pic) } if (mpi) { - // Palette support: free palette buffer allocated in get_buffer - if (mpi->bpp == 8) - av_freep(&mpi->planes[1]); // release mpi (in case MPI_IMGTYPE_NUMBERED is used, e.g. for VDPAU) mpi->usage_count--; } |