[SCM] libav/experimental: Remove redundant code.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:26:38 UTC 2013


The following commit has been merged in the experimental branch:
commit fa6a6c59e0e8ed7533d83281652bf72e17bc1087
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Mon Aug 4 22:52:54 2008 +0000

    Remove redundant code.
    
    Originally committed as revision 14541 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f66b492..35a57a2 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -917,10 +917,6 @@ static inline void direct_ref_list_init(H264Context * const h){
     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++)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list