aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/vaapi_transcode.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-25 01:53:40 +0100
committerJames Almer <jamrial@gmail.com>2021-04-27 10:43:14 -0300
commit46dac8cf3d250184ab4247809bc03f60e14f4c0c (patch)
treec5fabc231ab840ba7cafbe0e722dff0fe2148dd7 /doc/examples/vaapi_transcode.c
parent626535f6a169e2d821b969e0ea77125ba7482113 (diff)
downloadffmpeg-46dac8cf3d250184ab4247809bc03f60e14f4c0c.tar.gz
avformat/avformat, utils: Make av_find_best_stream const-correct
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'doc/examples/vaapi_transcode.c')
-rw-r--r--doc/examples/vaapi_transcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/vaapi_transcode.c b/doc/examples/vaapi_transcode.c
index e9b33eede0..a174bb643a 100644
--- a/doc/examples/vaapi_transcode.c
+++ b/doc/examples/vaapi_transcode.c
@@ -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) {