[Mplayer-cvslog] CVS: main mplayer.c,1.175,1.176
Arpi of Ize
arpi at mplayer.dev.hu
Sun Jul 8 14:34:10 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv24708
Modified Files:
mplayer.c
Log Message:
mpeg2 timing & fps fix for ffmpeg12 codec
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -r1.175 -r1.176
--- mplayer.c 8 Jul 2001 00:21:20 -0000 1.175
+++ mplayer.c 8 Jul 2001 12:34:08 -0000 1.176
@@ -1517,6 +1517,7 @@
videobuf_len=0;
while(videobuf_len<VIDEOBUFFER_SIZE-MAX_VIDEO_PACKET_SIZE){
int i=sync_video_packet(d_video);
+ void* buffer=&videobuffer[videobuf_len+4];
if(in_frame){
if(i<0x101 || i>=0x1B0){ // not slice code -> end of frame
#if 1
@@ -1538,6 +1539,13 @@
if(grab_frames==2 && (i==0x1B3 || i==0x1B8)) grab_frames=1;
if(!read_video_packet(d_video)){ eof=1; break;} // EOF
//printf("read packet 0x%X, len=%d\n",i,videobuf_len);
+ if(sh_video->codec->driver!=1){
+ // not libmpeg2:
+ switch(i){
+ case 0x1B3: header_process_sequence_header (picture, buffer);break;
+ case 0x1B5: header_process_extension (picture, buffer);break;
+ }
+ }
}
if(videobuf_len>max_framesize) max_framesize=videobuf_len; // debug
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list