# HG changeset patch # User mru # Date 1216063033 0 # Node ID 2bd9df0236e8aab7b937bea830144fa169604131 # Parent 6163e7de8604b8a4cfe5194f282584e0075fedf6 H264: fix index range assert() in remove_short_at_index() diff -r 6163e7de8604 -r 2bd9df0236e8 h264.c --- a/h264.c Mon Jul 14 16:18:29 2008 +0000 +++ b/h264.c Mon Jul 14 19:17:13 2008 +0000 @@ -3348,7 +3348,7 @@ * @param i index into h->short_ref of picture to remove. */ static void remove_short_at_index(H264Context *h, int i){ - assert(i > 0 && i < h->short_ref_count); + assert(i >= 0 && i < h->short_ref_count); h->short_ref[i]= NULL; if (--h->short_ref_count) memmove(&h->short_ref[i], &h->short_ref[i+1], (h->short_ref_count - i)*sizeof(Picture*));