[FFmpeg-cvslog] avplay: use the correct array size for stride.

Anton Khirnov git at videolan.org
Sun Jan 29 00:58:40 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jan 28 19:30:30 2012 +0100| [91b3bfba88fc820623b75dea9caa9c11b68e2d09] | committer: Anton Khirnov

avplay: use the correct array size for stride.

AV_NUM_DATA_POINTERS instead of 4.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=91b3bfba88fc820623b75dea9caa9c11b68e2d09
---

 avplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/avplay.c b/avplay.c
index 19e2bdc..f20b631 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;
 



More information about the ffmpeg-cvslog mailing list