Revision ebed7b68 libavcodec/vmdav.c

View differences:

libavcodec/vmdav.c
518 518
        return buf_size;
519 519

  
520 520
    block_type = buf[6];
521
    if (block_type < BLOCK_TYPE_AUDIO || block_type > BLOCK_TYPE_SILENCE) {
522
        av_log(avctx, AV_LOG_ERROR, "unknown block type: %d\n", block_type);
523
        return AVERROR(EINVAL);
524
    }
521 525

  
522 526
    if (block_type == BLOCK_TYPE_AUDIO) {
523 527
        /* the chunk contains audio */

Also available in: Unified diff