From 738386a5ed5eff0dbad36c33ff96b3b3d4d80af6 Mon Sep 17 00:00:00 2001
From: Loren Merritt <lorenm@u.washington.edu>
Date: Thu, 24 Feb 2005 09:27:46 +0000
Subject: [PATCH] 10l in implicit_weight_table

Originally committed as revision 3974 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f5c6473fe49..1cb66d33a3c 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -3152,7 +3152,7 @@ static void implicit_weight_table(H264Context *h){
     for(ref0=0; ref0 < h->ref_count[0]; ref0++){
         int poc0 = h->ref_list[0][ref0].poc;
         for(ref1=0; ref1 < h->ref_count[1]; ref1++){
-            int poc1 = h->ref_list[0][ref1].poc;
+            int poc1 = h->ref_list[1][ref1].poc;
             int td = clip(poc1 - poc0, -128, 127);
             if(td){
                 int tb = clip(cur_poc - poc0, -128, 127);
-- 
GitLab