]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/vaapi_transcode.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / doc / examples / vaapi_transcode.c
index e9b33eede06bdd6091303ac022125729991dd079..a174bb643a7f01aee9b2759dd727e8ad2550a742 100644 (file)
@@ -62,7 +62,7 @@ static enum AVPixelFormat get_vaapi_format(AVCodecContext *ctx,
 static int open_input_file(const char *filename)
 {
     int ret;
-    AVCodec *decoder = NULL;
+    const AVCodec *decoder = NULL;
     AVStream *video = NULL;
 
     if ((ret = avformat_open_input(&ifmt_ctx, filename, NULL, NULL)) < 0) {