# HG changeset patch # User michael # Date 1101336649 0 # Node ID b76a4977447a74b3fcf666f59c89fb0ea2f33331 # Parent f8a229dfa2e847eb3c48b9e59e4c9d71af9b6919 Fixed typo which caused incorrect motion prediction in B-frames. patch by (Loren Merritt ) diff -r f8a229dfa2e8 -r b76a4977447a h264.c --- a/h264.c Wed Nov 24 00:15:49 2004 +0000 +++ b/h264.c Wed Nov 24 22:50:49 2004 +0000 @@ -1017,7 +1017,7 @@ } } for(y=0; y<2; y++){ - *(uint16_t*)s->current_picture.motion_val[list][b8_xy + y*h->b8_stride]= (LIST_NOT_USED&0xFF)*0x0101; + *(uint16_t*)&s->current_picture.ref_index[list][b8_xy + y*h->b8_stride]= (LIST_NOT_USED&0xFF)*0x0101; } } continue; //FIXME direct mode ...