comparison mov.c @ 4406:146d6083662b libavformat

Replace the calls to the deprecated av_alloc_format_context() with corresponding calls to avformat_alloc_context().
author stefano
date Sun, 08 Feb 2009 08:27:26 +0000
parents 530e55405feb
children b6b31de76359
comparison
equal deleted inserted replaced
4405:61319d92bc36 4406:146d6083662b
1007 1007
1008 /* special codec parameters handling */ 1008 /* special codec parameters handling */
1009 switch (st->codec->codec_id) { 1009 switch (st->codec->codec_id) {
1010 #if CONFIG_DV_DEMUXER 1010 #if CONFIG_DV_DEMUXER
1011 case CODEC_ID_DVAUDIO: 1011 case CODEC_ID_DVAUDIO:
1012 c->dv_fctx = av_alloc_format_context(); 1012 c->dv_fctx = avformat_alloc_context();
1013 c->dv_demux = dv_init_demux(c->dv_fctx); 1013 c->dv_demux = dv_init_demux(c->dv_fctx);
1014 if (!c->dv_demux) { 1014 if (!c->dv_demux) {
1015 av_log(c->fc, AV_LOG_ERROR, "dv demux context init error\n"); 1015 av_log(c->fc, AV_LOG_ERROR, "dv demux context init error\n");
1016 return -1; 1016 return -1;
1017 } 1017 }