diff options
author | Anuj Mittal <am.devel@gmail.com> | 2012-10-09 18:22:26 +0530 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-09 16:48:43 +0200 |
commit | ce19aec15b4291dc48e791d89a1f940babc22cdc (patch) | |
tree | 64934508269c66716e93646136a7cc75d9ca2477 /libavcodec/h263dec.c | |
parent | ef9fe5bedd1993700818a0ba1c195cd6f6668afe (diff) | |
download | ffmpeg-ce19aec15b4291dc48e791d89a1f940babc22cdc.tar.gz |
Check resync marker only when enabled.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index e6d9ed3962..7141d49e0a 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -170,7 +170,7 @@ static int decode_slice(MpegEncContext *s){ if (s->avctx->hwaccel) { const uint8_t *start= s->gb.buffer + get_bits_count(&s->gb)/8; - const uint8_t *end = ff_h263_find_resync_marker(start + 1, s->gb.buffer_end); + const uint8_t *end = ff_h263_find_resync_marker(s, start + 1, s->gb.buffer_end); skip_bits_long(&s->gb, 8*(end - start)); return s->avctx->hwaccel->decode_slice(s->avctx, start, end - start); } |