X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvt_internal.h;h=929fe423fcde525b0976ead694053f2b3e55a05d;hb=2ca65fc7b74444edd51d5803a2c1e05a801a6023;hp=607dd7a6d0999ad009b62176fef6c1a25e76b35d;hpb=507e3f7d26ce7ad75ff146748ae285a8dee3b924;p=ffmpeg diff --git a/libavcodec/vt_internal.h b/libavcodec/vt_internal.h index 607dd7a6d09..929fe423fcd 100644 --- a/libavcodec/vt_internal.h +++ b/libavcodec/vt_internal.h @@ -38,6 +38,10 @@ 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);