[MPlayer-cvslog] r31876 - trunk/libmpdemux/muxer_mpeg.c

diego subversion at mplayerhq.hu
Sat Jul 31 18:15:36 CEST 2010


Author: diego
Date: Sat Jul 31 18:15:36 2010
New Revision: 31876

Log:
Use mp_a52_framesize() in all cases; gets rid of liba52 dependency.
Blessed by Nico Sabbi.

Modified:
   trunk/libmpdemux/muxer_mpeg.c

Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c	Sat Jul 31 18:05:19 2010	(r31875)
+++ trunk/libmpdemux/muxer_mpeg.c	Sat Jul 31 18:15:36 2010	(r31876)
@@ -40,9 +40,6 @@
 #include "mpeg_hdr.h"
 #include "mp3_hdr.h"
 
-#ifdef CONFIG_LIBA52
-#include <a52dec/a52.h>
-#endif
 
 #define PACK_HEADER_START_CODE 0x01ba
 #define SYSTEM_HEADER_START_CODE 0x01bb
@@ -2075,7 +2072,7 @@ static int analyze_mpa(muxer_stream_t *s
 
 static int parse_audio(muxer_stream_t *s, int finalize, unsigned int *nf, double *timer, double delay, int drop)
 {
-	int i, j, len, chans, srate, spf, layer, dummy, tot, num, frm_idx;
+	int i, j, len, chans, srate, spf, layer, tot, num, frm_idx;
 	int finished;
 	unsigned int frames;
 	uint64_t idur;
@@ -2124,11 +2121,7 @@ static int parse_audio(muxer_stream_t *s
 				if(s->b_buffer[i] == 0x0B && s->b_buffer[i+1] == 0x77)
 				{
 					srate = 0;
-				#ifdef CONFIG_LIBA52
-					len = a52_syncinfo(&(s->b_buffer[i]), &dummy, &srate, &dummy);
-				#else
 					len = mp_a52_framesize(&(s->b_buffer[i]), &srate);
-				#endif
 					if((len > 0) && (srate == s->wf->nSamplesPerSec) && (i + len <= s->b_buffer_len))
 					{
 						dur = (double) 1536 / (double) srate;


More information about the MPlayer-cvslog mailing list