changeset 7417:5b281979b60e libavcodec

Simple refactoring to resolve a FIXME. Patch by Paul Kendall.
author darkshikari
date Sat, 26 Jul 2008 15:07:04 +0000
parents a65363f8ab4b
children 83d005a098b5
files h264.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Jul 26 14:38:29 2008 +0000
+++ b/h264.c	Sat Jul 26 15:07:04 2008 +0000
@@ -2911,7 +2911,6 @@
 
     print_short_term(h);
     print_long_term(h);
-    if(h->slice_type_nos==FF_I_TYPE) return 0; //FIXME move before function
 
     for(list=0; list<h->list_count; list++){
         memcpy(h->ref_list[list], h->default_ref_list[list], sizeof(Picture)*h->ref_count[list]);
@@ -3988,7 +3987,7 @@
         fill_default_ref_list(h);
     }
 
-    if(decode_ref_pic_list_reordering(h) < 0)
+    if(h->slice_type_nos!=FF_I_TYPE && decode_ref_pic_list_reordering(h) < 0)
         return -1;
 
     if(   (h->pps.weighted_pred          && h->slice_type_nos == FF_P_TYPE )