comparison libmpdemux/muxer_lavf.c @ 31531:eaf15344b19d

Avoid some deprecated functions.
author reimar
date Thu, 01 Jul 2010 17:28:15 +0000
parents d05a77bed63f
children a735105a66b6
comparison
equal deleted inserted replaced
31530:7d89580568a7 31531:eaf15344b19d
342 342
343 priv = calloc(1, sizeof(muxer_priv_t)); 343 priv = calloc(1, sizeof(muxer_priv_t));
344 if(priv == NULL) 344 if(priv == NULL)
345 return 0; 345 return 0;
346 346
347 priv->oc = av_alloc_format_context(); 347 priv->oc = avformat_alloc_context();
348 if(!priv->oc) 348 if(!priv->oc)
349 { 349 {
350 mp_msg(MSGT_MUXER, MSGL_FATAL, "Could not get format context.\n"); 350 mp_msg(MSGT_MUXER, MSGL_FATAL, "Could not get format context.\n");
351 goto fail; 351 goto fail;
352 } 352 }
353 353
354 if(conf_format) 354 if(conf_format)
355 fmt = guess_format(conf_format, NULL, NULL); 355 fmt = av_guess_format(conf_format, NULL, NULL);
356 if(! fmt) 356 if(! fmt)
357 fmt = guess_format(NULL, out_filename, NULL); 357 fmt = av_guess_format(NULL, out_filename, NULL);
358 if(! fmt) 358 if(! fmt)
359 { 359 {
360 mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n"); 360 mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n");
361 goto fail; 361 goto fail;
362 } 362 }