[Ffmpeg-cvslog] r6946 - trunk/libavformat/matroska.c
aurel
subversion
Wed Nov 8 21:09:56 CET 2006
Author: aurel
Date: Wed Nov 8 21:09:56 2006
New Revision: 6946
Modified:
trunk/libavformat/matroska.c
Log:
add audio output sampling freqency reading in matroska
Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c (original)
+++ trunk/libavformat/matroska.c Wed Nov 8 21:09:56 2006
@@ -110,6 +110,8 @@
/* IDs in the trackaudio master */
#define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
+#define MATROSKA_ID_AUDIOOUTSAMPLINGFREQ 0x78B5
+
#define MATROSKA_ID_AUDIOBITDEPTH 0x6264
#define MATROSKA_ID_AUDIOCHANNELS 0x9F
@@ -273,6 +275,7 @@
int channels,
bitdepth,
+ internal_samplerate,
samplerate;
//..
} MatroskaAudioTrack;
@@ -1433,6 +1436,16 @@
if ((res = ebml_read_float(matroska, &id,
&num)) < 0)
break;
+ audiotrack->internal_samplerate =
+ audiotrack->samplerate = num;
+ break;
+ }
+
+ case MATROSKA_ID_AUDIOOUTSAMPLINGFREQ: {
+ double num;
+ if ((res = ebml_read_float(matroska, &id,
+ &num)) < 0)
+ break;
audiotrack->samplerate = num;
break;
}
More information about the ffmpeg-cvslog
mailing list