diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 30f332323cc9857d676fb8804af8402b1c34f532..e87157ce4672e51fe23f5e62140fd355aacd92a9 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2956,7 +2956,7 @@ static int decode_ref_pic_list_reordering(H264Context *h){
                             if(ref->data[0] != NULL &&
                                    ref->frame_num == frame_num &&
                                    (ref->reference & pic_structure) &&
-                                   ref->long_ref == 0) // ignore non-existing pictures by testing data[0] pointer
+                                   ) // ignore non-existing pictures by testing data[0] pointer
                                 break;
                         }
                         if(i>=0)