[SCM] libav/experimental: Replace deprecated guess_format() with av_guess_format().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:58:22 UTC 2013


The following commit has been merged in the experimental branch:
commit a52ce57d4e7c9baba0cc84fcc32301c60062fcd0
Author: Martin Storsjö <martin at martin.st>
Date:   Fri Jan 22 23:09:08 2010 +0000

    Replace deprecated guess_format() with av_guess_format().
    
    Patch by Martin Storsjö reverse(<ts.nitram at nitram>).
    
    Originally committed as revision 21387 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/output-example.c b/libavformat/output-example.c
index 7eb3352..ac7db48 100644
--- a/libavformat/output-example.c
+++ b/libavformat/output-example.c
@@ -447,10 +447,10 @@ int main(int argc, char **argv)
 
     /* 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");

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list