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 {
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to