[FFmpeg-cvslog] r14233 - trunk/libavcodec/h264.c
mru
subversion
Mon Jul 14 21:17:13 CEST 2008
Author: mru
Date: Mon Jul 14 21:17:13 2008
New Revision: 14233
Log:
H264: fix index range assert() in remove_short_at_index()
Modified:
trunk/libavcodec/h264.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Mon Jul 14 21:17:13 2008
@@ -3348,7 +3348,7 @@ static Picture * find_short(H264Context
* @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*));
More information about the ffmpeg-cvslog
mailing list