# HG changeset patch # User michael # Date 1217029008 0 # Node ID 3c04b2988f199fd2f3e5e810ca7159260622cf67 # Parent b032da5b0f22c5ba0a20ff893b3697d74b444bcc Remove mysterious ref->data[0] check. What the standard calls non-existent is not related to the value of the data[0] pointer. diff -r b032da5b0f22 -r 3c04b2988f19 h264.c --- 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)