Revision 6e546aaa libavcodec/utils.c

View differences:

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

Also available in: Unified diff