Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3067:d084a83f2117 | 3068:9aa8d8587bea |
---|---|
995 int diff; | 995 int diff; |
996 Picture *pic= s->reordered_input_picture[i+1]; | 996 Picture *pic= s->reordered_input_picture[i+1]; |
997 | 997 |
998 if(pic==NULL || pic->pict_type!=B_TYPE) break; | 998 if(pic==NULL || pic->pict_type!=B_TYPE) break; |
999 | 999 |
1000 b_pic= pic->data[0] + offset + 16; //FIXME +16 | 1000 b_pic= pic->data[0] + offset; |
1001 if(pic->type != FF_BUFFER_TYPE_SHARED) | |
1002 b_pic+= INPLACE_OFFSET; | |
1001 diff= s->dsp.sad[0](NULL, p_pic, b_pic, s->linesize, 16); | 1003 diff= s->dsp.sad[0](NULL, p_pic, b_pic, s->linesize, 16); |
1002 if(diff>s->qscale*70){ //FIXME check that 70 is optimal | 1004 if(diff>s->qscale*70){ //FIXME check that 70 is optimal |
1003 s->mb_skipped=0; | 1005 s->mb_skipped=0; |
1004 break; | 1006 break; |
1005 } | 1007 } |