From 626535f6a169e2d821b969e0ea77125ba7482113 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 25 Feb 2021 07:45:51 +0100 Subject: avcodec/codec, allcodecs: Constify the AVCodec API Signed-off-by: Andreas Rheinhardt Signed-off-by: James Almer --- doc/examples/transcode_aac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples/transcode_aac.c') diff --git a/doc/examples/transcode_aac.c b/doc/examples/transcode_aac.c index 73786ab59b..711076b5a5 100644 --- a/doc/examples/transcode_aac.c +++ b/doc/examples/transcode_aac.c @@ -60,7 +60,7 @@ static int open_input_file(const char *filename, AVCodecContext **input_codec_context) { AVCodecContext *avctx; - AVCodec *input_codec; + const AVCodec *input_codec; int error; /* Open the input file to read from it. */ @@ -144,7 +144,7 @@ static int open_output_file(const char *filename, AVCodecContext *avctx = NULL; AVIOContext *output_io_context = NULL; AVStream *stream = NULL; - AVCodec *output_codec = NULL; + const AVCodec *output_codec = NULL; int error; /* Open the output file to write to it. */ -- cgit v1.2.3