[MPlayer-cvslog] CVS: main/libmpdemux muxer_mpeg.c,1.31,1.32

Nico Sabbi CVS syncmail at mplayerhq.hu
Sat Jan 28 00:07:55 CET 2006


CVS change done by Nico Sabbi CVS

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

Modified Files:
	muxer_mpeg.c 
Log Message:
use mp_a52_framesize() when liba52 is not available

Index: muxer_mpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_mpeg.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- muxer_mpeg.c	26 Jan 2006 19:32:07 -0000	1.31
+++ muxer_mpeg.c	27 Jan 2006 23:07:53 -0000	1.32
@@ -2266,7 +2266,13 @@
 			{
 				if(s->b_buffer[i] == 0x0B && s->b_buffer[i+1] == 0x77)
 				{
+					srate = 0;
+				#ifdef USE_LIBA52
 					len = a52_syncinfo(&(s->b_buffer[i]), &dummy, &srate, &dummy);
+				#else
+					len = mp_a52_framesize(&(s->b_buffer[i]), &srate);
+				#endif
+					if(len) fprintf(stderr, "\r\nLEN: %d, srate: %d\r\n", len, srate);
 					if((len > 0) && (srate == s->wf->nSamplesPerSec) && (i + len <= s->b_buffer_len))
 					{
 						frames++;




More information about the MPlayer-cvslog mailing list