]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/remuxing.c
avformat: Constify the API wrt AV(In|Out)putFormat
[ffmpeg] / doc / examples / remuxing.c
index 59594181a709014244d390ddc43c0d729883afab..13313a17486505ce23334c54da01372166efca78 100644 (file)
@@ -45,7 +45,7 @@ static void log_packet(const AVFormatContext *fmt_ctx, const AVPacket *pkt, cons
 
 int main(int argc, char **argv)
 {
-    AVOutputFormat *ofmt = NULL;
+    const AVOutputFormat *ofmt = NULL;
     AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL;
     AVPacket pkt;
     const char *in_filename, *out_filename;
@@ -65,8 +65,6 @@ int main(int argc, char **argv)
     in_filename  = argv[1];
     out_filename = argv[2];
 
-    av_register_all();
-
     if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) {
         fprintf(stderr, "Could not open input file '%s'", in_filename);
         goto end;