diff options
author | James Almer <jamrial@gmail.com> | 2020-09-24 17:57:42 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-09-29 21:38:27 -0300 |
commit | 515b6419ca51f036a2d6dd42841a4be07147f865 (patch) | |
tree | 49390097e4abd2135fdd1815caaf01063b758ba3 /libavcodec/cbs_internal.h | |
parent | 23d075416544f55a605b1818a8491c818312a62d (diff) |
avcodec/cbs: add a flush callback to CodedBitstreamType
Used to reset the codec's private internal state.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_internal.h')
-rw-r--r-- | libavcodec/cbs_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h index d991e1eedf..faa847aad3 100644 --- a/libavcodec/cbs_internal.h +++ b/libavcodec/cbs_internal.h @@ -117,6 +117,9 @@ typedef struct CodedBitstreamType { int (*assemble_fragment)(CodedBitstreamContext *ctx, CodedBitstreamFragment *frag); + // Reset the codec internal state. + void (*flush)(CodedBitstreamContext *ctx); + // Free the codec internal state. void (*close)(CodedBitstreamContext *ctx); } CodedBitstreamType; |