changeset 2284:6d26e105f68f libavcodec

h.264 ref list reordering bugfix patch by (Loren Merritt <lorenm at u dot washington dot edu>)
author michael
date Sun, 03 Oct 2004 22:01:21 +0000
parents e968ff495d3a
children 9891c6a212ca
files h264.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Oct 01 14:38:32 2004 +0000
+++ b/h264.c	Sun Oct 03 22:01:21 2004 +0000
@@ -2592,6 +2592,8 @@
                 int pic_id;
                 int i;
                 
+                if(reordering_of_pic_nums_idc==3) 
+                    break;
                 
                 if(index >= h->ref_count[list]){
                     av_log(h->s.avctx, AV_LOG_ERROR, "reference count overflow\n");
@@ -2634,9 +2636,7 @@
                         }
                         h->ref_list[list][index]= tmp;
                     }
-                }else if(reordering_of_pic_nums_idc==3) 
-                    break;
-                else{
+                }else{
                     av_log(h->s.avctx, AV_LOG_ERROR, "illegal reordering_of_pic_nums_idc\n");
                     return -1;
                 }