diff mpegts.c @ 5143:f25bc340370b libavformat

mpegts: change variable-length array to fixed length The difference between 188 and 204 is not worth worrying about.
author mru
date Mon, 24 Aug 2009 21:42:25 +0000
parents 9c846d0a6803
children d65f5e784b3b
line wrap: on
line diff
--- a/mpegts.c	Mon Aug 24 13:43:33 2009 +0000
+++ b/mpegts.c	Mon Aug 24 21:42:25 2009 +0000
@@ -356,7 +356,7 @@
 }
 
 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 x=0;
     int best_score=0;