Mercurial > mplayer.hg
changeset 1873:f27465a65e41
IMGFMT_MPEGPES support
author | arpi |
---|---|
date | Sat, 08 Sep 2001 23:28:17 +0000 |
parents | 2fe0e11bab3c |
children | d7ee8628f1d5 |
files | dec_video.c |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dec_video.c Sat Sep 08 23:27:51 2001 +0000 +++ b/dec_video.c Sat Sep 08 23:28:17 2001 +0000 @@ -532,8 +532,21 @@ } #endif case VFM_MPEG: - mpeg2_decode_data(video_out, start, start+in_size,drop_frame); - if(!drop_frame) blit_frame=1; + if(out_fmt==IMGFMT_MPEGPES){ + // hardware decoding: + static vo_mpegpes_t packet; + mpeg2_decode_data(video_out, start, start+in_size,3); // parse headers + packet.data=start; + packet.size=in_size-4; + packet.timestamp=sh_video->timer*90000.0; + packet.id=0x1E0; //+sh_video->ds->id; + planes[0]=&packet; + blit_frame=2; + } else { + // software decoding: + mpeg2_decode_data(video_out, start, start+in_size,drop_frame); // decode + if(!drop_frame) blit_frame=1; + } break; case VFM_RAW: planes[0]=start;