Browse Source

mpegts: change variable-length array to fixed length

The difference between 188 and 204 is not worth worrying about.

Originally committed as revision 19697 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Måns Rullgård 16 years ago
parent
commit
cf5ec60740
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegts.c
  2. +2
    -0
      libavformat/mpegts.h

+ 1
- 1
libavformat/mpegts.c View File

@@ -356,7 +356,7 @@ static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
} }


static int analyze(const uint8_t *buf, int size, int packet_size, int *index){ static int analyze(const uint8_t *buf, int size, int packet_size, int *index){
int stat[packet_size];
int stat[TS_MAX_PACKET_SIZE];
int i; int i;
int x=0; int x=0;
int best_score=0; int best_score=0;


+ 2
- 0
libavformat/mpegts.h View File

@@ -27,6 +27,8 @@
#define TS_FEC_PACKET_SIZE 204 #define TS_FEC_PACKET_SIZE 204
#define TS_DVHS_PACKET_SIZE 192 #define TS_DVHS_PACKET_SIZE 192
#define TS_PACKET_SIZE 188 #define TS_PACKET_SIZE 188
#define TS_MAX_PACKET_SIZE 204

#define NB_PID_MAX 8192 #define NB_PID_MAX 8192
#define MAX_SECTION_SIZE 4096 #define MAX_SECTION_SIZE 4096




Loading…
Cancel
Save