From 11dd6f39fdeeef18c8e3607200df704d4d1da693 Mon Sep 17 00:00:00 2001 From: Yonghye Kwon Date: Fri, 3 Jun 2022 23:34:50 +0900 Subject: [PATCH] replace AVCodec * with const AVCodec * to read codec information https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/codec.h#L266 --- 0_hello_world.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/0_hello_world.c b/0_hello_world.c index 1b40a0b..a09a911 100644 --- a/0_hello_world.c +++ b/0_hello_world.c @@ -79,7 +79,7 @@ int main(int argc, const char *argv[]) // the component that knows how to enCOde and DECode the stream // it's the codec (audio or video) // http://ffmpeg.org/doxygen/trunk/structAVCodec.html - AVCodec *pCodec = NULL; + const AVCodec *pCodec = NULL; // this component describes the properties of a codec used by the stream i // https://ffmpeg.org/doxygen/trunk/structAVCodecParameters.html AVCodecParameters *pCodecParameters = NULL; @@ -97,7 +97,7 @@ int main(int argc, const char *argv[]) logging("finding the proper decoder (CODEC)"); - AVCodec *pLocalCodec = NULL; + const AVCodec *pLocalCodec = NULL; // finds the registered decoder for a codec ID // https://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga19a0ca553277f019dd5b0fec6e1f9dca