Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

AVFormatContext* avformat_alloc_context ( void   ) 

Allocates an AVFormatContext. Can be freed with av_free() but do not forget to free everything you explicitly allocated as well!

Definition at line 78 of file options.c.

References AVFormatContext::av_class, and av_malloc().

Referenced by av_alloc_format_context(), and av_open_input_stream().

    AVFormatContext *ic;
    ic = av_malloc(sizeof(AVFormatContext));
    if (!ic) return ic;
    ic->av_class = &av_format_context_class;
    return ic;

Generated by  Doxygen 1.6.0   Back to index