From fa6a6c59e0e8ed7533d83281652bf72e17bc1087 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 4 Aug 2008 22:52:54 +0000 Subject: Remove redundant code. Originally committed as revision 14541 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/h264.c b/libavcodec/h264.c index f66b4925f5..35a57a2bc5 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; jref_count[list]; j++) -- cgit v1.2.3