Browse Source

avcodec/h264_slice: Fix ranges in assert

Fixes CID1297592, CID1297593

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
47cbcf20d6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/h264_slice.c

+ 2
- 2
libavcodec/h264_slice.c View File

@@ -397,9 +397,9 @@ static void copy_picture_range(H264Picture **to, H264Picture **from, int count,
int i;

for (i = 0; i < count; i++) {
av_assert1((IN_RANGE(from[i], old_base, sizeof(*old_base)) ||
av_assert1((IN_RANGE(from[i], old_base, 1) ||
IN_RANGE(from[i], old_base->DPB,
sizeof(H264Picture) * H264_MAX_PICTURE_COUNT) ||
H264_MAX_PICTURE_COUNT) ||
!from[i]));
to[i] = REBASE_PICTURE(from[i], new_base, old_base);
}


Loading…
Cancel
Save