summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-01-28 19:30:30 +0100
committerAnton Khirnov <anton@khirnov.net>2012-01-28 19:45:45 +0100
commit91b3bfba88fc820623b75dea9caa9c11b68e2d09 (patch)
tree07836251595a6505f59108af1a52dab372b93475 /avplay.c
parent9bfe218299a1a206356c702c8651e5c6bdb0c009 (diff)
downloadffmpeg-91b3bfba88fc820623b75dea9caa9c11b68e2d09.tar.gz
avplay: use the correct array size for stride.
AV_NUM_DATA_POINTERS instead of 4.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c2
1 files changed, 1 insertions, 1 deletions
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;