Remove mysterious ref->data[0] check.

What the standard calls non-existent is not related to the
value of the data[0] pointer.

Originally committed as revision 14402 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 17 years ago
parent 99157e499c
commit 6edac8e104
  1. 4
      libavcodec/h264.c

@ -2953,10 +2953,10 @@ static int decode_ref_pic_list_reordering(H264Context *h){
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)

Loading…
Cancel
Save