[MPlayer-users] [PATCH] Re: Mplayer seg fault
adland
adland123 at yahoo.com
Mon May 31 23:47:59 CEST 2004
this patch fixes the segfault and some video output is displayed
--- main/libmpcodecs/vd_ffmpeg.c 2004-04-11 16:01:42.000000000 -0400
+++ updated/libmpcodecs/vd_ffmpeg.c 2004-05-31 17:39:46.000000000 -0400
@@ -644,7 +644,7 @@
}
// 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
However I also noticed an error output message
DR1 failure is displayed
from code in file libmpcodecs/vd_ffmpeg.c
it needs something fixed in this case
(the ip_count is 3)
if(ctx->b_count>1 || ctx->ip_count>2){
printf("DR1 failure\n");
ctx->do_dr1=0; //FIXME
avctx->get_buffer= avcodec_default_get_buffer;
return avctx->get_buffer(avctx, pic);
}
not sure how this code works and did not change anything here.
good luck
More information about the MPlayer-users
mailing list