changeset 7464:baac3cd44794

we don't need the 0x1FF hack any more
author arpi
date Sat, 21 Sep 2002 22:38:41 +0000
parents b7554c679687
children c541bb409a27
files libmpcodecs/vd_libmpeg2.c libmpcodecs/vd_mpegpes.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Sat Sep 21 22:06:09 2002 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Sat Sep 21 22:38:41 2002 +0000
@@ -286,10 +286,10 @@
     signal(SIGSEGV,old_sigh); // restore sighandler
 #endif
 
-    if(code==0x1FF){
+//    if(code==0x1FF){
 	ret=parse_chunk(sh, 0xFF, NULL, framedrop); // send 'end of frame'
 	if(ret) mpi=ret;
-    }
+//    }
 
     return mpi;
 }
--- a/libmpcodecs/vd_mpegpes.c	Sat Sep 21 22:06:09 2002 +0000
+++ b/libmpcodecs/vd_mpegpes.c	Sat Sep 21 22:38:41 2002 +0000
@@ -41,7 +41,7 @@
     static vo_mpegpes_t packet;
     mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0, sh->disp_w, sh->disp_h);
     packet.data=data;
-    packet.size=len-4;
+    packet.size=len;
     packet.timestamp=sh->timer*90000.0;
     packet.id=0x1E0; //+sh_video->ds->id;
     mpi->planes[0]=(uint8_t*)(&packet);