Skip to content

Commit

Permalink
Return value of avcodec_find_decoder() is const these days.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Apr 29, 2023
1 parent f4641d4 commit 043a529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/video-viewer.cc
Expand Up @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) {
// Find the first video stream
int videoStream = -1;
AVCodecParameters *codec_parameters = NULL;
AVCodec *av_codec = NULL;
const AVCodec *av_codec = NULL;
for (int i = 0; i < (int)format_context->nb_streams; ++i) {
codec_parameters = format_context->streams[i]->codecpar;
av_codec = avcodec_find_decoder(codec_parameters->codec_id);
Expand Down

0 comments on commit 043a529

Please sign in to comment.