[FFmpeg-devel] [PATCH] vp3: fix draw_horiz_band chroma for 422 and 444
Reimar Döffinger
Reimar.Doeffinger
Sun Jun 6 13:27:44 CEST 2010
Hello,
obviously this chroma-calculation was missed when adding 422 and 444
support.
Index: libavcodec/vp3.c
===================================================================
--- libavcodec/vp3.c (revision 23501)
+++ libavcodec/vp3.c (working copy)
@@ -1329,7 +1329,9 @@
y = s->height - y - h;
}
- cy = y >> 1;
+ cy = y;
+ if (s->avctx->pix_fmt == PIX_FMT_YUV420P)
+ cy >>= 1;
offset[0] = s->current_frame.linesize[0]*y;
offset[1] = s->current_frame.linesize[1]*cy;
offset[2] = s->current_frame.linesize[2]*cy;
More information about the ffmpeg-devel
mailing list