mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
02e5778806
commit
283c3fb6f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue