X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvt_internal.h;h=fb64735b8cd3515f653597fd53290f97a1d2c650;hb=fe1ccc1e91168c855a2720d0a195377f4638cc70;hp=607dd7a6d0999ad009b62176fef6c1a25e76b35d;hpb=5b5365fe9d635005a9020d89c2448f4b5828d42f;p=ffmpeg diff --git a/libavcodec/vt_internal.h b/libavcodec/vt_internal.h index 607dd7a6d09..fb64735b8cd 100644 --- a/libavcodec/vt_internal.h +++ b/libavcodec/vt_internal.h @@ -38,11 +38,14 @@ typedef struct VTContext { // Non-NULL if the new hwaccel API is used. This is only a separate struct // to ease compatibility with the old API. struct AVVideotoolboxContext *vt_ctx; + + // Current H264 parameters (used to trigger decoder restart on SPS changes). + uint8_t sps[3]; + bool reconfig_needed; } VTContext; int ff_videotoolbox_alloc_frame(AVCodecContext *avctx, AVFrame *frame); int ff_videotoolbox_uninit(AVCodecContext *avctx); -int ff_videotoolbox_buffer_create(VTContext *vtctx, AVFrame *frame); int ff_videotoolbox_h264_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size);