Revision dacbcd17 libavcodec/wavpack.c

View differences:

libavcodec/wavpack.c
706 706
    else
707 707
        avctx->sample_fmt = AV_SAMPLE_FMT_S32;
708 708
    if(avctx->channels <= 2 && !avctx->channel_layout)
709
    avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
709
        avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
710 710

  
711 711
    s->multichannel = avctx->channels > 2;
712 712
    /* lavf demuxer does not provide extradata, Matroska stores 0x403
......
775 775
    }
776 776

  
777 777
    if(!wc->mkv_mode){
778
    s->samples = AV_RL32(buf); buf += 4;
779
    if(!s->samples){
780
        *data_size = 0;
781
        return buf_size;
782
    }
778
        s->samples = AV_RL32(buf); buf += 4;
779
        if(!s->samples){
780
            *data_size = 0;
781
            return buf_size;
782
        }
783 783
    }else{
784 784
        s->samples = wc->samples;
785 785
    }

Also available in: Unified diff