summaryrefslogtreecommitdiff
path: root/doc/examples/transcode_aac.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/transcode_aac.c
parent14fa0a4efbc989619860ed8ec0fd33dcdae558b0 (diff)
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/transcode_aac.c')
-rw-r--r--doc/examples/transcode_aac.c4
1 files changed, 2 insertions, 2 deletions
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. */