diff --git a/avplay.c b/avplay.c index 19e2bdcc18..f20b6315fb 100644 --- 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;