Revision b4b5e922 libavcodec/vmdav.c

View differences:

libavcodec/vmdav.c
514 514
    /* point to the start of the encoded data */
515 515
    const unsigned char *p = buf + 16;
516 516

  
517
    if (buf_size < 16)
517
    if (buf_size < 16) {
518
        av_log(avctx, AV_LOG_WARNING, "skipping small junk packet\n");
519
        *data_size = 0;
518 520
        return buf_size;
521
    }
519 522

  
520 523
    block_type = buf[6];
521 524
    if (block_type < BLOCK_TYPE_AUDIO || block_type > BLOCK_TYPE_SILENCE) {

Also available in: Unified diff