1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

we don't need the 0x1FF hack any more

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7465 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-09-21 22:38:41 +00:00
parent 4cdc10c696
commit 90398b7167
2 changed files with 3 additions and 3 deletions

View File

@ -286,10 +286,10 @@ while(current<end){
signal(SIGSEGV,old_sigh); // restore sighandler signal(SIGSEGV,old_sigh); // restore sighandler
#endif #endif
if(code==0x1FF){ // if(code==0x1FF){
ret=parse_chunk(sh, 0xFF, NULL, framedrop); // send 'end of frame' ret=parse_chunk(sh, 0xFF, NULL, framedrop); // send 'end of frame'
if(ret) mpi=ret; if(ret) mpi=ret;
} // }
return mpi; return mpi;
} }

View File

@ -41,7 +41,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
static vo_mpegpes_t packet; static vo_mpegpes_t packet;
mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0, sh->disp_w, sh->disp_h); mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0, sh->disp_w, sh->disp_h);
packet.data=data; packet.data=data;
packet.size=len-4; packet.size=len;
packet.timestamp=sh->timer*90000.0; packet.timestamp=sh->timer*90000.0;
packet.id=0x1E0; //+sh_video->ds->id; packet.id=0x1E0; //+sh_video->ds->id;
mpi->planes[0]=(uint8_t*)(&packet); mpi->planes[0]=(uint8_t*)(&packet);