changeset 5577:21c98b55a800 libavformat

Replace deprecated guess_format() with av_guess_format(). Patch by Martin Storsj reverse(<ts.nitram@nitram>).
author stefano
date Fri, 22 Jan 2010 23:09:08 +0000
parents 1a89eae96a27
children e892e44a0b6b
files output-example.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/output-example.c	Fri Jan 22 16:12:55 2010 +0000
+++ b/output-example.c	Fri Jan 22 23:09:08 2010 +0000
@@ -447,10 +447,10 @@
 
     /* auto detect the output format from the name. default is
        mpeg. */
-    fmt = guess_format(NULL, filename, NULL);
+    fmt = av_guess_format(NULL, filename, NULL);
     if (!fmt) {
         printf("Could not deduce output format from file extension: using MPEG.\n");
-        fmt = guess_format("mpeg", NULL, NULL);
+        fmt = av_guess_format("mpeg", NULL, NULL);
     }
     if (!fmt) {
         fprintf(stderr, "Could not find suitable output format\n");