[FFmpeg-devel] [PATCH] ffv1dec: use correct linesize

Paul B Mahol onemda at gmail.com
Tue Jan 31 22:41:33 CET 2012


Apparently this did not break anything.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/ffv1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 7a88688..3f69910 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1435,7 +1435,7 @@ static int decode_slice(AVCodecContext *c, void *arg){
         decode_plane(fs, p->data[0] + ps*x + y*p->linesize[0], width, height, p->linesize[0], 0);
 
         decode_plane(fs, p->data[1] + ps*cx+cy*p->linesize[1], chroma_width, chroma_height, p->linesize[1], 1);
-        decode_plane(fs, p->data[2] + ps*cx+cy*p->linesize[1], chroma_width, chroma_height, p->linesize[2], 1);
+        decode_plane(fs, p->data[2] + ps*cx+cy*p->linesize[2], chroma_width, chroma_height, p->linesize[2], 1);
         if (fs->transparency)
             decode_plane(fs, p->data[3] + ps*x + y*p->linesize[3], width, height, p->linesize[3], 2);
     }else{
-- 
1.7.7



More information about the ffmpeg-devel mailing list