[MPlayer-cvslog] r31597 - trunk/libmpdemux/muxer_lavf.c

reimar subversion at mplayerhq.hu
Thu Jul 1 19:28:15 CEST 2010


Author: reimar
Date: Thu Jul  1 19:28:15 2010
New Revision: 31597

Log:
Avoid some deprecated functions.

Modified:
   trunk/libmpdemux/muxer_lavf.c

Modified: trunk/libmpdemux/muxer_lavf.c
==============================================================================
--- trunk/libmpdemux/muxer_lavf.c	Thu Jul  1 18:51:46 2010	(r31596)
+++ trunk/libmpdemux/muxer_lavf.c	Thu Jul  1 19:28:15 2010	(r31597)
@@ -344,7 +344,7 @@ int muxer_init_muxer_lavf(muxer_t *muxer
 	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 @@ int muxer_init_muxer_lavf(muxer_t *muxer
 	}
 
 	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");


More information about the MPlayer-cvslog mailing list