1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-03 21:52:12 +00:00

ported back hack for interlaced mpeg2, without it mplayer draws whole frame for every field -100% slowdown

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5361 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2002-03-26 17:05:09 +00:00
parent 6539dbefe7
commit c1205011cc

View File

@ -63,7 +63,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
} else {
mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, MP_IMGFLAG_DRAW_CALLBACK,
sh->disp_w, sh->disp_h);
mpeg2_decode_data(sh->video_out, data, data+len,flags&3); // decode
if(
mpeg2_decode_data(sh->video_out, data, data+len,flags&3)==0 // decode
)return NULL;//hack for interlaced mpeg2
}
return mpi;
}