From 7d7f635dc000ceb8a3862b3bc08590656e7a9719 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Wed, 24 Nov 2004 22:50:49 +0000 Subject: Fixed typo which caused incorrect motion prediction in B-frames. patch by (Loren Merritt ) Originally committed as revision 3709 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/h264.c') diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 1ea4289420..38d5bebdde 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1017,7 +1017,7 @@ static inline void write_back_motion(H264Context *h, int mb_type){ } } 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 ... -- cgit v1.2.3