lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v192 28 lines 1.1 kB view raw
1diff --git a/include/libmkv.h b/include/libmkv.h 2index 146a91f..f03d608 100644 3--- a/include/libmkv.h 4+++ b/include/libmkv.h 5@@ -203,6 +204,7 @@ struct mk_TrackConfig_s { 6 } video; 7 struct { 8 float samplingFreq; /* Sampling Frequency in Hz */ 9+ float outputSamplingFreq; /* Playback Sampling Frequency in Hz (e.g. for AAC w/SBR) */ 10 unsigned channels; /* Number of channels for this track */ 11 unsigned bitDepth; /* Bits per sample (PCM) */ 12 } audio; 13diff --git a/src/tracks.c b/src/tracks.c 14index f9c7e48..a2a60ca 100644 15--- a/src/tracks.c 16+++ b/src/tracks.c 17@@ -174,6 +174,11 @@ mk_Track *mk_createTrack(mk_Writer *w, mk_TrackConfig *tc) 18 /* SamplingFrequency */ 19 if (mk_writeFloat(v, MATROSKA_ID_AUDIOSAMPLINGFREQ, tc->extra.audio.samplingFreq) < 0) 20 return NULL; 21+ if (tc->extra.audio.outputSamplingFreq) { 22+ /* Output SamplingFrequency */ 23+ if (mk_writeFloat(v, MATROSKA_ID_AUDIOOUTSAMPLINGFREQ, tc->extra.audio.outputSamplingFreq) < 0) 24+ return NULL; 25+ } 26 /* Channels */ 27 if (mk_writeUInt(v, MATROSKA_ID_AUDIOCHANNELS, tc->extra.audio.channels) < 0) 28 return NULL;