X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibdav1d.c;h=50e6200f5dfb20518926fa53b6be25aa8b9dc4ea;hb=83b6471dcb762859f20b2c414decc755fcceb5e8;hp=04587b88da576a6fe953502060dcd930d878cbfa;hpb=18933dbde04eaf70975543d848ad24e2a2a9ab6e;p=ffmpeg diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index 04587b88da5..50e6200f5df 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -313,12 +313,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) } // match timestamps and packet size - frame->pts = frame->best_effort_timestamp = p->m.timestamp; -#if FF_API_PKT_PTS -FF_DISABLE_DEPRECATION_WARNINGS - frame->pkt_pts = p->m.timestamp; -FF_ENABLE_DEPRECATION_WARNINGS -#endif + frame->pts = p->m.timestamp; frame->pkt_dts = p->m.timestamp; frame->pkt_pos = p->m.offset; frame->pkt_size = p->m.size; @@ -406,7 +401,7 @@ FF_ENABLE_DEPRECATION_WARNINGS goto fail; } - fgp->type = AV_FILM_GRAM_PARAMS_AV1; + fgp->type = AV_FILM_GRAIN_PARAMS_AV1; fgp->seed = p->frame_hdr->film_grain.data.seed; fgp->codec.aom.num_y_points = p->frame_hdr->film_grain.data.num_y_points; fgp->codec.aom.chroma_scaling_from_luma = p->frame_hdr->film_grain.data.chroma_scaling_from_luma; @@ -474,7 +469,7 @@ static const AVClass libdav1d_class = { .version = LIBAVUTIL_VERSION_INT, }; -AVCodec ff_libdav1d_decoder = { +const AVCodec ff_libdav1d_decoder = { .name = "libdav1d", .long_name = NULL_IF_CONFIG_SMALL("dav1d AV1 decoder by VideoLAN"), .type = AVMEDIA_TYPE_VIDEO, @@ -484,8 +479,9 @@ AVCodec ff_libdav1d_decoder = { .close = libdav1d_close, .flush = libdav1d_flush, .receive_frame = libdav1d_receive_frame, - .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AUTO_THREADS, - .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_SETS_PKT_DTS, + .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_SETS_PKT_DTS | + FF_CODEC_CAP_AUTO_THREADS, .priv_class = &libdav1d_class, .wrapper_name = "libdav1d", };