Mercurial > libavcodec.hg
diff h263.c @ 3068:9aa8d8587bea libavcodec
fixing bframe strategy 2
bits vs. bytes factor of 8 error
16 byte offset error
some other minor things
author | michael |
---|---|
date | Fri, 27 Jan 2006 13:19:13 +0000 |
parents | 0b546eab515d |
children | 00b7ecfd59a6 |
line wrap: on
line diff
--- a/h263.c Thu Jan 26 23:42:30 2006 +0000 +++ b/h263.c Fri Jan 27 13:19:13 2006 +0000 @@ -997,7 +997,9 @@ if(pic==NULL || pic->pict_type!=B_TYPE) break; - b_pic= pic->data[0] + offset + 16; //FIXME +16 + b_pic= pic->data[0] + offset; + if(pic->type != FF_BUFFER_TYPE_SHARED) + b_pic+= INPLACE_OFFSET; diff= s->dsp.sad[0](NULL, p_pic, b_pic, s->linesize, 16); if(diff>s->qscale*70){ //FIXME check that 70 is optimal s->mb_skipped=0;