Browse Source

Merge commit '9eef9eb3014b2ed9c3ff4aac510a9f04edb555cf'

* commit '9eef9eb3014b2ed9c3ff4aac510a9f04edb555cf':
  h264: check that execute_decode_slices() is not called too many times

Conflicts:
	libavcodec/h264.c

The check is replaced by an assert() as the mb index should not ever go out
of bounds.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
64591f8f86
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/h264.c

+ 2
- 0
libavcodec/h264.c View File

@@ -4675,6 +4675,8 @@ static int execute_decode_slices(H264Context *h, int context_count)
H264Context *hx;
int i;

av_assert0(h->mb_y < h->mb_height);

if (h->avctx->hwaccel ||
h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)
return 0;


Loading…
Cancel
Save