]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/vaapi_encode.c
avcodec/codec, allcodecs: Constify the AVCodec API
[ffmpeg] / doc / examples / vaapi_encode.c
index 46bca1b3fe2b5f4eea59d85a4a412929dce26c57..e232fa579a176ea0e4cedaadda449a042dedbaa3 100644 (file)
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
     FILE *fin = NULL, *fout = NULL;
     AVFrame *sw_frame = NULL, *hw_frame = NULL;
     AVCodecContext *avctx = NULL;
-    AVCodec *codec = NULL;
+    const AVCodec *codec = NULL;
     const char *enc_name = "h264_vaapi";
 
     if (argc < 5) {