Skip to content

Commit df7af7c

Browse files
committed
fix patch
1 parent f877819 commit df7af7c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

hevc_ps.patch

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
2+
index 03dea5751a..f2aece7566 100644
3+
--- a/libavcodec/codec_desc.c
4+
+++ b/libavcodec/codec_desc.c
5+
@@ -1274,9 +1274,9 @@ static const AVCodecDescriptor codec_descriptors[] = {
6+
.id = AV_CODEC_ID_HEVC,
7+
.type = AVMEDIA_TYPE_VIDEO,
8+
.name = "hevc",
9+
- .long_name = NULL_IF_CONFIG_SMALL("H.265 / HEVC (High Efficiency Video Coding)"),
10+
+ .long_name = "H.265 / HEVC (High Efficiency Video Coding)",
11+
.props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
12+
- .profiles = NULL_IF_CONFIG_SMALL(ff_hevc_profiles),
13+
+ .profiles = ff_hevc_profiles,
14+
},
15+
{
16+
.id = AV_CODEC_ID_FIC,
17+
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
18+
index 0dc24f82f8..abbb949aef 100644
19+
--- a/libavcodec/hevc/hevcdec.c
20+
+++ b/libavcodec/hevc/hevcdec.c
21+
@@ -4079,7 +4079,7 @@ const FFCodec ff_hevc_decoder = {
22+
.caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING |
23+
FF_CODEC_CAP_USES_PROGRESSFRAMES |
24+
FF_CODEC_CAP_INIT_CLEANUP,
25+
- .p.profiles = NULL_IF_CONFIG_SMALL(ff_hevc_profiles),
26+
+ .p.profiles = ff_hevc_profiles,
27+
.hw_configs = (const AVCodecHWConfigInternal *const []) {
28+
#if CONFIG_HEVC_DXVA2_HWACCEL
29+
HWACCEL_DXVA2(hevc),
130
diff --git a/libavcodec/hevc/ps.c b/libavcodec/hevc/ps.c
231
index f18b88489b..2cd4d24c5a 100644
332
--- a/libavcodec/hevc/ps.c

0 commit comments

Comments
 (0)