Logo Search packages:      
Sourcecode: blender version File versions  Download package

AVCodecContext* avcodec_alloc_context ( void   ) 

allocates a AVCodecContext and set it to defaults. this can be deallocated by simply calling free()

Definition at line 812 of file utils.c.

References av_malloc(), and avcodec_alloc_context().

Referenced by av_new_stream(), and avcodec_alloc_context().

                                           {
    AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));

    if(avctx==NULL) return NULL;

    avcodec_get_context_defaults(avctx);

    return avctx;
}


Generated by  Doxygen 1.6.0   Back to index