[Ffmpeg-devel] [PATCH] lowres chroma bug
Reimar Döffinger
Reimar.Doeffinger
Wed Jul 5 18:26:54 CEST 2006
Hello,
the attached patch fixes an extreme chroma bug in lowres mode for at
least one MSMPEG4V2 video (probably it's the same as available at
http://www.elephantsdream.org/download/ , not sure though).
Okay to commit?
Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavcodec/mpegvideo.c
===================================================================
--- libavcodec/mpegvideo.c (revision 5610)
+++ libavcodec/mpegvideo.c (working copy)
@@ -3097,8 +3097,8 @@
if(!(s->flags&CODEC_FLAG_GRAY)){
uvsx <<= 2 - lowres;
uvsy <<= 2 - lowres;
- pix_op[lowres](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
- pix_op[lowres](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
+ pix_op[lowres-1](dest_cb, ptr_cb, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
+ pix_op[lowres-1](dest_cr, ptr_cr, uvlinesize, h >> s->chroma_y_shift, uvsx, uvsy);
}
//FIXME h261 lowres loop filter
}
More information about the ffmpeg-devel
mailing list