aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/vaapi_encode.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 07:45:51 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:14 -0300
commit626535f6a169e2d821b969e0ea77125ba7482113 (patch)
treebfab6bbc7157ec5163ed8ae3bf3978f74f4fdd3e /doc/examples/vaapi_encode.c
parent14fa0a4efbc989619860ed8ec0fd33dcdae558b0 (diff)
downloadffmpeg-626535f6a169e2d821b969e0ea77125ba7482113.tar.gz
avcodec/codec, allcodecs: Constify the AVCodec API
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'doc/examples/vaapi_encode.c')
-rw-r--r--doc/examples/vaapi_encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/vaapi_encode.c b/doc/examples/vaapi_encode.c
index 46bca1b3fe..e232fa579a 100644
--- a/doc/examples/vaapi_encode.c
+++ b/doc/examples/vaapi_encode.c
@@ -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) {