]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/output-example.c
ffmpeg: Factor out redundant sync_ipts calculation
[ffmpeg] / libavformat / output-example.c
index 7eb3352b74fbc95e70675c26debf957a94c0ab3a..fb1d3a78192fb00e0344f88ff6766b1429f72466 100644 (file)
 #include <string.h>
 #include <math.h>
 
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 #include "libavformat/avformat.h"
 #include "libswscale/swscale.h"
 
@@ -447,10 +443,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");