summaryrefslogtreecommitdiff
path: root/doc/examples/vaapi_transcode.c
diff options
context:
space:
mode:
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) {