Added some missing braces in remux.c

This commit is contained in:
Klaus Schmidinger 2005-08-28 21:07:37 +02:00
parent d3cfd9721d
commit db44b98eed
3 changed files with 20 additions and 21 deletions

View File

@ -1153,6 +1153,7 @@ Wayne Keer <syphir@syphir.sytes.net>
for reporting an unused variable from cTimer::GetWDayFromMDay() for reporting an unused variable from cTimer::GetWDayFromMDay()
for reporting a spelling error in 'canceling' for reporting a spelling error in 'canceling'
for adding some 'mkdir -p' to the Makefile's 'install' target for adding some 'mkdir -p' to the Makefile's 'install' target
for reporting some missing braces in remux.c
Marco Schlüßler <marco@lordzodiac.de> Marco Schlüßler <marco@lordzodiac.de>
for fixing handling colors in cDvbSpuPalette::yuv2rgb() for fixing handling colors in cDvbSpuPalette::yuv2rgb()

View File

@ -3746,3 +3746,7 @@ Video Disk Recorder Revision History
Hardy Flor). Hardy Flor).
- The new SVDRP command EDIT can be used to start the editing process of a recording - The new SVDRP command EDIT can be used to start the editing process of a recording
(based on the CUTR patch by Harald Milz). (based on the CUTR patch by Harald Milz).
2005-08-28: Version 1.3.32
- Added some missing braces in remux.c (thanks to Wayne Keer for reporting this one).

36
remux.c
View File

@ -11,7 +11,7 @@
* The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>, * The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>,
* and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de. * and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de.
* *
* $Id: remux.c 1.42 2005/08/28 11:46:44 kls Exp $ * $Id: remux.c 1.43 2005/08/28 21:03:35 kls Exp $
*/ */
#include "remux.h" #include "remux.h"
@ -522,18 +522,16 @@ public:
}; };
int cAudioRepacker::bitRates[2][3][16] = { // all values are specified as kbits/s int cAudioRepacker::bitRates[2][3][16] = { // all values are specified as kbits/s
// MPEG 1, Layer I {
0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1, { 0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1 }, // MPEG 1, Layer I
// MPEG 1, Layer II { 0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, -1 }, // MPEG 1, Layer II
0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, -1, { 0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1 } // MPEG 1, Layer III
// MPEG 1, Layer III },
0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1, {
// MPEG 2, Layer I { 0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, -1 }, // MPEG 2, Layer I
0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, -1, { 0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1 }, // MPEG 2, Layer II/III
// MPEG 2, Layer II/III { 0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1 } // MPEG 2, Layer II/III
0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1, }
// MPEG 2, Layer II/III
0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1
}; };
cAudioRepacker::cAudioRepacker(void) cAudioRepacker::cAudioRepacker(void)
@ -589,17 +587,13 @@ bool cAudioRepacker::IsValidAudioHeader(uint32_t Header, bool Mpeg2, int *FrameS
*FrameSize = 0; *FrameSize = 0;
else { else {
static int samplingFrequencies[2][4] = { // all values are specified in Hz static int samplingFrequencies[2][4] = { // all values are specified in Hz
// MPEG 1 { 44100, 48000, 32000, -1 }, // MPEG 1
44100, 48000, 32000, -1, { 22050, 24000, 16000, -1 } // MPEG 2
// MPEG 2
22050, 24000, 16000, -1
}; };
static int slots_per_frame[2][3] = { static int slots_per_frame[2][3] = {
// MPEG 1, Layer I, II, III { 12, 144, 144 }, // MPEG 1, Layer I, II, III
12, 144, 144, { 12, 144, 72 } // MPEG 2, Layer I, II, III
// MPEG 2, Layer I, II, III
12, 144, 72
}; };
int mpegIndex = 1 - id; int mpegIndex = 1 - id;