Skip to content

Commit

Permalink
add mpeg2video to hwdec-codecs
Browse files Browse the repository at this point in the history
Add MPEG2 to the codec list that is allowed to be hardware decoded by default. Almost all GPUs support this old codec, so why not allow it by default when hwdec is enabled?
  • Loading branch information
mitzsch authored Sep 4, 2023
1 parent 67368ac commit 3fe7fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video/decode/vd_lavc.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const struct m_sub_options vd_lavc_conf = {
.framedrop = AVDISCARD_NONREF,
.dr = -1,
.hwdec_api = (char *[]){"no", NULL,},
.hwdec_codecs = "h264,vc1,hevc,vp8,vp9,av1,prores",
.hwdec_codecs = "h264,vc1,hevc,vp8,vp9,av1,prores,mpeg2video",
// Maximum number of surfaces the player wants to buffer. This number
// might require adjustment depending on whatever the player does;
// for example, if vo_gpu increases the number of reference surfaces for
Expand Down

0 comments on commit 3fe7fbb

Please sign in to comment.