Skip to content

Commit

Permalink
Use the correct hw decoder name for AV1 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asd-g committed Mar 6, 2024
1 parent 8ce6b96 commit 8e022ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ const AVCodec *find_decoder
&& prefer_hw_decoder )
{
const char *codec_name;
if( !strcmp( codec->name, "mpeg1video" ) )
if (!strcmp(codec->name, "mpeg1video"))
codec_name = "mpeg1";
else if( !strcmp( codec->name, "mpeg2video" ) )
else if (!strcmp(codec->name, "mpeg2video"))
codec_name = "mpeg2";
else if (!strcmp(codec->name, "libdav1d"))
codec_name = "av1";
else
codec_name = codec->name;
AVCodec *preferred_decoder;
Expand Down

0 comments on commit 8e022ed

Please sign in to comment.