Mercurial > mplayer.hg
changeset 5360:40f87aaaa2f3
ported back hack for interlaced mpeg2, without it mplayer draws whole frame for every field -100% slowdown
author | iive |
---|---|
date | Tue, 26 Mar 2002 17:05:09 +0000 |
parents | a647a4bd5e93 |
children | 3e81a50e33ff |
files | libmpcodecs/vd_libmpeg2.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c Tue Mar 26 16:56:24 2002 +0000 +++ b/libmpcodecs/vd_libmpeg2.c Tue Mar 26 17:05:09 2002 +0000 @@ -63,7 +63,9 @@ } 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; }