]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/filtering_video.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / doc / examples / filtering_video.c
index 105a200d93401f6ea27cd0b8cb71fca8b3ff4b98..88394530abbd9b8bc509f4a51d9c40deffcc8f5f 100644 (file)
@@ -53,8 +53,8 @@ static int64_t last_pts = AV_NOPTS_VALUE;
 
 static int open_input_file(const char *filename)
 {
+    const AVCodec *dec;
     int ret;
-    AVCodec *dec;
 
     if ((ret = avformat_open_input(&fmt_ctx, filename, NULL, NULL)) < 0) {
         av_log(NULL, AV_LOG_ERROR, "Cannot open input file\n");