--- main/libmpcodecs/vd_libmpeg2.c 18 Aug 2003 14:49:06 -0000 1.26 +++ main/libmpcodecs/vd_libmpeg2.c 20 Sep 2003 02:02:38 -0000 @@ -97,6 +97,8 @@ static mp_image_t* decode(sh_video_t *sh mp_image_t* mpi=NULL; int drop_frame, framedrop=flags&3; + if(len<=0) return NULL; // skipped frame + // append extra 'end of frame' code: ((char*)data+len)[0]=0; ((char*)data+len)[1]=0;