Unified · Split
| @@ -2550,7 +2550,9 @@ static int decode_chunks(AVCodecContext *avctx, AVFrame *picture, · 2549 unmodified lines | ||
| 2550 | 2550 | } |
| 2551 | 2551 | break; |
| 2552 | 2552 | case EXT_START_CODE: |
| 2553 | − init_get_bits(&s2->gb, buf_ptr, input_size * 8); | |
| 2553 | + ret = init_get_bits8(&s2->gb, buf_ptr, input_size); | |
| 2554 | + if (ret < 0) | |
| 2555 | + return ret; | |
| 2554 | 2556 | |
| 2555 | 2557 | switch (get_bits(&s2->gb, 4)) { |
| 2556 | 2558 | case 0x1: |