Revision 2de4f9eb

View differences:

libavcodec/utils.c
830 830
    avctx->codec_id = codec->id;
831 831
    avctx->frame_number = 0;
832 832
    if(avctx->codec->init){
833
    ret = avctx->codec->init(avctx);
834
    if (ret < 0) {
835
        av_freep(&avctx->priv_data);
836
        avctx->codec= NULL;
837
        goto end;
838
    }
833
        ret = avctx->codec->init(avctx);
834
        if (ret < 0) {
835
            av_freep(&avctx->priv_data);
836
            avctx->codec= NULL;
837
            goto end;
838
        }
839 839
    }
840 840
    ret=0;
841 841
end:

Also available in: Unified diff