diff mbox series

[FFmpeg-devel,1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag

Message ID 20230709192110.5934-1-jamrial@gmail.com
State Accepted
Commit 62cb9d97c1f9a655d3d144d7cb2b1145f890ef20
Headers show
Series [FFmpeg-devel,1/7] avcodec/av1dec: remove FF_CODEC_CAP_SETS_PKT_DTS flag | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer July 9, 2023, 7:21 p.m. UTC
It has no effect on receive_frame() decoders.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/av1dec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

James Almer July 11, 2023, 4:04 p.m. UTC | #1
On 7/9/2023 4:21 PM, James Almer wrote:
> It has no effect on receive_frame() decoders.
> 
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>   libavcodec/av1dec.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
> index e7f98a6c81..cc178464b9 100644
> --- a/libavcodec/av1dec.c
> +++ b/libavcodec/av1dec.c
> @@ -1527,8 +1527,7 @@ const FFCodec ff_av1_decoder = {
>       .close                 = av1_decode_free,
>       FF_CODEC_RECEIVE_FRAME_CB(av1_receive_frame),
>       .p.capabilities        = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING,
> -    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP |
> -                             FF_CODEC_CAP_SETS_PKT_DTS,
> +    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP,
>       .flush                 = av1_decode_flush,
>       .p.profiles            = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
>       .p.priv_class          = &av1_class,

Will apply set.
diff mbox series

Patch

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index e7f98a6c81..cc178464b9 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -1527,8 +1527,7 @@  const FFCodec ff_av1_decoder = {
     .close                 = av1_decode_free,
     FF_CODEC_RECEIVE_FRAME_CB(av1_receive_frame),
     .p.capabilities        = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING,
-    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP |
-                             FF_CODEC_CAP_SETS_PKT_DTS,
+    .caps_internal         = FF_CODEC_CAP_INIT_CLEANUP,
     .flush                 = av1_decode_flush,
     .p.profiles            = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
     .p.priv_class          = &av1_class,