mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-15 13:21:09 +08:00
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>
This commit is contained in:
@@ -112,6 +112,12 @@ int ff_cbs_init(CodedBitstreamContext **ctx_ptr,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ff_cbs_flush(CodedBitstreamContext *ctx)
|
||||
{
|
||||
if (ctx->codec && ctx->codec->flush)
|
||||
ctx->codec->flush(ctx);
|
||||
}
|
||||
|
||||
void ff_cbs_close(CodedBitstreamContext **ctx_ptr)
|
||||
{
|
||||
CodedBitstreamContext *ctx = *ctx_ptr;
|
||||
|
Reference in New Issue
Block a user