Revision 8e2fd8e1

View differences:

ffmpeg.c
2778 2778
                    !strcmp(filename, "/dev/stdin");
2779 2779

  
2780 2780
    /* get default parameters from command line */
2781
    ic = av_alloc_format_context();
2781
    ic = avformat_alloc_context();
2782 2782

  
2783 2783
    memset(ap, 0, sizeof(*ap));
2784 2784
    ap->prealloced_context = 1;
......
3267 3267
    if (!strcmp(filename, "-"))
3268 3268
        filename = "pipe:";
3269 3269

  
3270
    oc = av_alloc_format_context();
3270
    oc = avformat_alloc_context();
3271 3271

  
3272 3272
    if (!file_oformat) {
3273 3273
        file_oformat = guess_format(NULL, filename, NULL);
......
3900 3900
    for(i=0; i<CODEC_TYPE_NB; i++){
3901 3901
        avctx_opts[i]= avcodec_alloc_context2(i);
3902 3902
    }
3903
    avformat_opts = av_alloc_format_context();
3903
    avformat_opts = avformat_alloc_context();
3904 3904
    sws_opts = sws_getContext(16,16,0, 16,16,0, sws_flags, NULL,NULL,NULL);
3905 3905

  
3906 3906
    show_banner();
ffplay.c
2554 2554
    for(i=0; i<CODEC_TYPE_NB; i++){
2555 2555
        avctx_opts[i]= avcodec_alloc_context2(i);
2556 2556
    }
2557
    avformat_opts = av_alloc_format_context();
2557
    avformat_opts = avformat_alloc_context();
2558 2558
    sws_opts = sws_getContext(16,16,0, 16,16,0, sws_flags, NULL,NULL,NULL);
2559 2559

  
2560 2560
    show_banner();
ffserver.c
2711 2711
    AVStream avs[MAX_STREAMS];
2712 2712
    int i;
2713 2713

  
2714
    avc =  av_alloc_format_context();
2714
    avc =  avformat_alloc_context();
2715 2715
    if (avc == NULL) {
2716 2716
        return -1;
2717 2717
    }
......
3154 3154
    int max_packet_size;
3155 3155

  
3156 3156
    /* now we can open the relevant output stream */
3157
    ctx = av_alloc_format_context();
3157
    ctx = avformat_alloc_context();
3158 3158
    if (!ctx)
3159 3159
        return -1;
3160 3160
    ctx->oformat = guess_format("rtp", NULL, NULL);
libavformat/mov.c
1009 1009
    switch (st->codec->codec_id) {
1010 1010
#if CONFIG_DV_DEMUXER
1011 1011
    case CODEC_ID_DVAUDIO:
1012
        c->dv_fctx = av_alloc_format_context();
1012
        c->dv_fctx = avformat_alloc_context();
1013 1013
        c->dv_demux = dv_init_demux(c->dv_fctx);
1014 1014
        if (!c->dv_demux) {
1015 1015
            av_log(c->fc, AV_LOG_ERROR, "dv demux context init error\n");
libavformat/utils.c
413 413
    }
414 414

  
415 415
    if(!ap->prealloced_context)
416
        ic = av_alloc_format_context();
416
        ic = avformat_alloc_context();
417 417
    else
418 418
        ic = *ic_ptr;
419 419
    if (!ic) {
output_example.c
453 453
    }
454 454

  
455 455
    /* allocate the output media context */
456
    oc = av_alloc_format_context();
456
    oc = avformat_alloc_context();
457 457
    if (!oc) {
458 458
        fprintf(stderr, "Memory error\n");
459 459
        exit(1);
tests/seek_test.c
50 50
    filename = argv[1];
51 51

  
52 52
    /* allocate the media context */
53
    ic = av_alloc_format_context();
53
    ic = avformat_alloc_context();
54 54
    if (!ic) {
55 55
        fprintf(stderr, "Memory error\n");
56 56
        exit(1);

Also available in: Unified diff