This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decoder_ffmpeg: constify codec variables
Fixes the following compile warnings: decoder_ffmpeg.c: In function ‘init_vaapi’: decoder_ffmpeg.c:135:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 135 | AVCodec *codec = avcodec_find_decoder(avctx->codec_id); | ^~~~~~~~~~~~~~~~~~~~ decoder_ffmpeg.c: In function ‘ffdec_init_sw’: decoder_ffmpeg.c:149:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 149 | AVCodec *codec = avcodec_find_decoder(avctx->codec_id); | ^~~~~~~~~~~~~~~~~~~~
- Loading branch information