changeset 31531:eaf15344b19d

Avoid some deprecated functions.
author reimar
date Thu, 01 Jul 2010 17:28:15 +0000
parents 7d89580568a7
children 312e3b425f0f
files libmpdemux/muxer_lavf.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c	Thu Jul 01 16:51:46 2010 +0000
+++ b/libmpdemux/muxer_lavf.c	Thu Jul 01 17:28:15 2010 +0000
@@ -344,7 +344,7 @@
 	if(priv == NULL)
 		return 0;
 
-	priv->oc = av_alloc_format_context();
+	priv->oc = avformat_alloc_context();
 	if(!priv->oc)
 	{
 		mp_msg(MSGT_MUXER, MSGL_FATAL, "Could not get format context.\n");
@@ -352,9 +352,9 @@
 	}
 
 	if(conf_format)
-		fmt = guess_format(conf_format, NULL, NULL);
+		fmt = av_guess_format(conf_format, NULL, NULL);
 	if(! fmt)
-		fmt = guess_format(NULL, out_filename, NULL);
+		fmt = av_guess_format(NULL, out_filename, NULL);
 	if(! fmt)
 	{
 		mp_msg(MSGT_MUXER, MSGL_FATAL, "Cannot get specified format.\n");