[MPlayer-cvslog] CVS: main/libmpdemux matroska.h, 1.18, 1.19 demux_mkv.c, 1.49, 1.50
Moritz Bunkus CVS
syncmail at mplayerhq.hu
Sat Oct 22 12:13:30 CEST 2005
CVS change done by Moritz Bunkus CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv27351
Modified Files:
matroska.h demux_mkv.c
Log Message:
Added support for A_AAC.
Index: matroska.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/matroska.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- matroska.h 21 Jan 2005 18:25:44 -0000 1.18
+++ matroska.h 22 Oct 2005 10:13:28 -0000 1.19
@@ -18,6 +18,7 @@
#define MKV_A_AAC_4SBR "A_AAC/MPEG4/LC/SBR"
#define MKV_A_AAC_4SSR "A_AAC/MPEG4/SSR"
#define MKV_A_AAC_4LTP "A_AAC/MPEG4/LTP"
+#define MKV_A_AAC "A_AAC"
#define MKV_A_AC3 "A_AC3"
#define MKV_A_DTS "A_DTS"
#define MKV_A_MP2 "A_MPEG/L2"
Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- demux_mkv.c 13 Oct 2005 18:33:56 -0000 1.49
+++ demux_mkv.c 22 Oct 2005 10:13:28 -0000 1.50
@@ -1773,7 +1773,8 @@
!strncmp(track->codec_id, MKV_A_AAC_4LC,
strlen(MKV_A_AAC_4LC)) ||
!strcmp(track->codec_id, MKV_A_AAC_4SSR) ||
- !strcmp(track->codec_id, MKV_A_AAC_4LTP))
+ !strcmp(track->codec_id, MKV_A_AAC_4LTP) ||
+ !strcmp(track->codec_id, MKV_A_AAC))
track->a_formattag = mmioFOURCC('M', 'P', '4', 'A');
else if (!strcmp(track->codec_id, MKV_A_VORBIS))
{
@@ -1874,6 +1875,16 @@
sh_a->wf->nAvgBytesPerSec = 16000;
sh_a->wf->nBlockAlign = 1024;
+ if (!strcmp (track->codec_id, MKV_A_AAC) &&
+ (NULL != track->private_data))
+ {
+ sh_a->codecdata=(unsigned char *)malloc(track->private_size);
+ memcpy (sh_a->codecdata, track->private_data,
+ track->private_size);
+ sh_a->codecdata_len = track->private_size;
+ return 0;
+ }
+
/* Recreate the 'private data' */
/* which faad2 uses in its initialization */
srate_idx = aac_get_sample_rate_index (sh_a->samplerate);
More information about the MPlayer-cvslog
mailing list