]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vt_internal.h
libavcodec/rscc.c: add missing semicolon
[ffmpeg] / libavcodec / vt_internal.h
index 607dd7a6d0999ad009b62176fef6c1a25e76b35d..fb64735b8cd3515f653597fd53290f97a1d2c650 100644 (file)
@@ -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);