]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/extract_mvs.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / doc / examples / extract_mvs.c
index 7ae934ead3d510abb8cf47dba5af607f2e9a352c..42e1844150e5505b624e1efa93e4abd2aeea0e59 100644 (file)
@@ -78,7 +78,7 @@ static int open_codec_context(AVFormatContext *fmt_ctx, enum AVMediaType type)
     int ret;
     AVStream *st;
     AVCodecContext *dec_ctx = NULL;
-    AVCodec *dec = NULL;
+    const AVCodec *dec = NULL;
     AVDictionary *opts = NULL;
 
     ret = av_find_best_stream(fmt_ctx, type, -1, -1, &dec, 0);
@@ -129,8 +129,6 @@ int main(int argc, char **argv)
     }
     src_filename = argv[1];
 
-    av_register_all();
-
     if (avformat_open_input(&fmt_ctx, src_filename, NULL, NULL) < 0) {
         fprintf(stderr, "Could not open source file %s\n", src_filename);
         exit(1);