avplay: use the correct array size for stride.
authorAnton Khirnov <anton@khirnov.net>
Sat, 28 Jan 2012 18:30:30 +0000 (19:30 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sat, 28 Jan 2012 18:45:45 +0000 (19:45 +0100)
AV_NUM_DATA_POINTERS instead of 4.

avplay.c

index 19e2bdc..f20b631 100644 (file)
--- a/avplay.c
+++ b/avplay.c
@@ -1527,7 +1527,7 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
     AVFilterContext *ctx = codec->opaque;
     AVFilterBufferRef  *ref;
     int perms = AV_PERM_WRITE;
-    int i, w, h, stride[4];
+    int i, w, h, stride[AV_NUM_DATA_POINTERS];
     unsigned edge;
     int pixel_size;