changeset 7483:edea5d7db24d libavcodec

Remove redundant code.
author michael
date Mon, 04 Aug 2008 22:52:54 +0000
parents ecf3c774f5e1
children 74f16dd7abc6
files h264.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Mon Aug 04 22:32:41 2008 +0000
+++ b/h264.c	Mon Aug 04 22:52:54 2008 +0000
@@ -917,10 +917,6 @@
     int list, i, j;
     int sidx= s->picture_structure&1;
     int ref1sidx= ref1->reference&1;
-    if(cur->pict_type == FF_I_TYPE)
-        cur->ref_count[sidx][0] = 0;
-    if(cur->pict_type != FF_B_TYPE)
-        cur->ref_count[sidx][1] = 0;
     for(list=0; list<2; list++){
         cur->ref_count[sidx][list] = h->ref_count[list];
         for(j=0; j<h->ref_count[list]; j++)