From 0444b0230493f560d91ec19f8a7e64507335eb94 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 13 May 2005 12:00:12 +0000 Subject: [PATCH] =?UTF-8?q?alignment=20fix=20by=20(G=C3=A1bor=20Kov=C3=A1c?= =?UTF-8?q?s=20>picard=20demoscene=20hu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 4233 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 5ab3c428ec..401b41a094 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1378,7 +1378,8 @@ static inline void write_back_motion(H264Context *h, int mb_type){ } } for(y=0; y<2; y++){ - *(uint16_t*)&s->current_picture.ref_index[list][b8_xy + y*h->b8_stride]= (LIST_NOT_USED&0xFF)*0x0101; + s->current_picture.ref_index[list][b8_xy + 0 + y*h->b8_stride]= + s->current_picture.ref_index[list][b8_xy + 1 + y*h->b8_stride]= LIST_NOT_USED; } } continue;