[FFmpeg-soc] [soc]: r2332 - dvbmuxer/mpegtsenc.c
bcoudurier
subversion at mplayerhq.hu
Mon Jun 2 21:46:18 CEST 2008
Author: bcoudurier
Date: Mon Jun 2 21:46:17 2008
New Revision: 2332
Log:
add const and use CODEC_TYPE_NB as size to prevent error
Modified:
dvbmuxer/mpegtsenc.c
Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c (original)
+++ dvbmuxer/mpegtsenc.c Mon Jun 2 21:46:17 2008
@@ -144,12 +144,11 @@ static int mpegts_write_section1(MpegTSS
/**
* lookup table from codec id to pes stream id
*/
-static int pes_streamid[5] = {
+static const int pes_streamid[CODEC_TYPE_NB] = {
0xe0, /**< CODEC_TYPE_VIDEO */
0xc0, /**< CODEC_TYPE_AUDIO */
0xbd, /**< CODEC_TYPE_DATA */
0xbd, /**< CODEC_TYPE_SUBTITLE */
- 0xbd /**< CODEC_TYPE_NB */
};
typedef struct MpegTSWriteStream {
More information about the FFmpeg-soc
mailing list