diff h264.c @ 7402:3c04b2988f19 libavcodec

Remove mysterious ref->data[0] check. What the standard calls non-existent is not related to the value of the data[0] pointer.
author michael
date Fri, 25 Jul 2008 23:36:48 +0000
parents b032da5b0f22
children aff96834b8cd
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 22:42:49 2008 +0000
+++ b/h264.c	Fri Jul 25 23:36:48 2008 +0000
@@ -2953,10 +2953,10 @@
                             ref = h->short_ref[i];
                             assert(ref->reference);
                             assert(!ref->long_ref);
-                            if(ref->data[0] != NULL &&
+                            if(
                                    ref->frame_num == frame_num &&
                                    (ref->reference & pic_structure)
-                                   ) // ignore non-existing pictures by testing data[0] pointer
+                              )
                                 break;
                         }
                         if(i>=0)