From 2ea392529a84c38cb3a55acc99b9341f6255956c Mon Sep 17 00:00:00 2001
From: Loren Merritt <lorenm@u.washington.edu>
Date: Sat, 25 Mar 2006 09:46:43 +0000
Subject: [PATCH] 10l in 1.199 (write_back_motion with B-pyramid + spatial)

Originally committed as revision 5215 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/h264.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a972aeb03c4..15fdfcfc3ab 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1422,6 +1422,9 @@ static inline void write_back_motion(H264Context *h, int mb_type){
     const int b8_xy= 2*s->mb_x + 2*s->mb_y*h->b8_stride;
     int list;
 
+    if(!USES_LIST(mb_type, 0))
+        fill_rectangle(&s->current_picture.ref_index[0][b8_xy], 2, 2, h->b8_stride, (uint8_t)LIST_NOT_USED, 1);
+
     for(list=0; list<2; list++){
         int y;
         if(!USES_LIST(mb_type, list))
-- 
GitLab