diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-06 13:48:30 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-06-06 13:48:30 +0000 |
commit | 283c3fb6f2098e7ccb2a02491c965eba31eced26 (patch) | |
tree | f083148caa3aa8732f790aa94a2f3387ad4ac61b /libmpcodecs | |
parent | 02e5778806fd0f15730f9f2877de02db68d5e9a2 (diff) | |
download | mpv-283c3fb6f2098e7ccb2a02491c965eba31eced26.tar.bz2 mpv-283c3fb6f2098e7ccb2a02491c965eba31eced26.tar.xz |
Segfault fix for some h264 in avi files
Patch by adland
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12535 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 6716995b20..5cd3a9a6ef 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -644,7 +644,7 @@ static void release_buffer(struct AVCodecContext *avctx, AVFrame *pic){ } // Palette support: free palette buffer allocated in get_buffer - if ((mpi->bpp == 8) && (mpi->planes[1] != NULL)) + if ( mpi && (mpi->bpp == 8) && (mpi->planes[1] != NULL)) free(mpi->planes[1]); #if LIBAVCODEC_BUILD >= 4644 |