]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vt_internal.h
avcodec/rkmpp : remove stream start retries before first frame.
[ffmpeg] / libavcodec / vt_internal.h
index 607dd7a6d0999ad009b62176fef6c1a25e76b35d..929fe423fcde525b0976ead694053f2b3e55a05d 100644 (file)
@@ -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);