changeset 7404:f76bbe133ddd libavcodec

Remove another 2 incorrect checks. These would ignore fields of different parity.
author michael
date Fri, 25 Jul 2008 23:49:01 +0000
parents aff96834b8cd
children dfe1d1d104eb
files h264.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 23:39:43 2008 +0000
+++ b/h264.c	Fri Jul 25 23:49:01 2008 +0000
@@ -2954,8 +2954,7 @@
                             assert(ref->reference);
                             assert(!ref->long_ref);
                             if(
-                                   ref->frame_num == frame_num &&
-                                   (ref->reference & pic_structure)
+                                   ref->frame_num == frame_num
                               )
                                 break;
                         }
@@ -2973,7 +2972,7 @@
                         }
                         ref = h->long_ref[long_idx];
                         assert(!(ref && !ref->reference));
-                        if(ref && (ref->reference & pic_structure)){
+                        if(ref){
                             ref->pic_id= pic_id;
                             assert(ref->long_ref);
                             i=0;