summaryrefslogtreecommitdiff
path: root/libavcodec/h263.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-01-27 13:19:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-01-27 13:19:13 +0000
commit07fc2b8278b81635e9e4de1dc18ce646116d8fe5 (patch)
tree87eb43a96ef0fcf9f8451eeb567ede8c63ccdbcb /libavcodec/h263.c
parente435887cf6addd8ade091e0bfb5341567e4ddd94 (diff)
fixing bframe strategy 2
bits vs. bytes factor of 8 error 16 byte offset error some other minor things Originally committed as revision 4902 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r--libavcodec/h263.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 2e41c65e0f..f7369c18d5 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -997,7 +997,9 @@ void mpeg4_encode_mb(MpegEncContext * s,
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;