[FFmpeg-devel] [PATCH 4/6] asfdec: convert variable-length array to fixed size

Mans Rullgard mans
Wed Aug 19 03:23:00 CEST 2009


MAX_STREAMS is small enough that it doesn't matter
---
 libavformat/asfdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 0995b5a..5d90f45 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -994,7 +994,7 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos,
     int64_t pts;
     int64_t pos= *ppos;
     int i;
-    int64_t start_pos[s->nb_streams];
+    int64_t start_pos[MAX_STREAMS];
 
     for(i=0; i<s->nb_streams; i++){
         start_pos[i]= pos;
-- 
1.6.4




More information about the ffmpeg-devel mailing list