[MPlayer-cvslog] CVS: main/libmpdemux muxer_mpeg.c,1.36,1.37

Nico Sabbi CVS syncmail at mplayerhq.hu
Sat Feb 11 22:45:45 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv21585

Modified Files:
	muxer_mpeg.c 
Log Message:
init frame duration to 1/fps when we have a frame but not the enclosing sequence header: it's workaround against lavf's demuxer that doesn't sync to seq_hdr unlike mplayer's native demuxers

Index: muxer_mpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_mpeg.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- muxer_mpeg.c	10 Feb 2006 22:28:32 -0000	1.36
+++ muxer_mpeg.c	11 Feb 2006 21:45:42 -0000	1.37
@@ -1927,6 +1927,8 @@
 		} 
 		else 
 		{
+			if(!spriv->nom_delta_pts)	//workaround: lavf doesn't sync to sequence headers before passing demux_packets
+				spriv->delta_pts = spriv->nom_delta_pts = parse_fps(fps);
 			pt = (s->buffer[ptr+5] & 0x1c) >> 3;
 			temp_ref = (s->buffer[ptr+4]<<2)+(s->buffer[ptr+5]>>6);
 			if(!spriv->vframes)




More information about the MPlayer-cvslog mailing list