Revision 68a4d349 libavcodec/vp56.c

View differences:

libavcodec/vp56.c
504 504
    int is_alpha, av_uninit(alpha_offset);
505 505

  
506 506
    if (s->has_alpha) {
507
        if (remaining_buf_size < 3)
508
            return -1;
507 509
        alpha_offset = bytestream_get_be24(&buf);
508 510
        remaining_buf_size -= 3;
511
        if (remaining_buf_size < alpha_offset)
512
            return -1;
509 513
    }
510 514

  
511 515
    for (is_alpha=0; is_alpha < 1+s->has_alpha; is_alpha++) {

Also available in: Unified diff