mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 06:01:56 +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:
parent
6539dbefe7
commit
c1205011cc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user