Remove another 2 incorrect checks.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jul 2008 23:49:01 +0000 (23:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jul 2008 23:49:01 +0000 (23:49 +0000)
These would ignore fields of different parity.

Originally committed as revision 14404 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index c3def67..ac0d088 100644 (file)
@@ -2954,8 +2954,7 @@ static int decode_ref_pic_list_reordering(H264Context *h){
                             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 @@ static int decode_ref_pic_list_reordering(H264Context *h){
                         }
                         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;