diff options
author | James Almer <jamrial@gmail.com> | 2018-07-26 20:42:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-08-16 23:43:12 -0300 |
commit | 94fe138de0ba5892a7051f5b47c191a41b78805a (patch) | |
tree | 93760c3bab76f3630feebf71085277479eaa0b6a /libavcodec/decode.h | |
parent | 2954e513930f9b1bc2cfba49eed3fc1911e76892 (diff) | |
download | ffmpeg-94fe138de0ba5892a7051f5b47c191a41b78805a.tar.gz |
avcodec/decode: flush the internal bsfs instead of constantly reinitalizing them
Initialize the bsfs once when opening the codec and uninitialize them once when
closing it, instead of at every codec flush/seek.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/decode.h')
-rw-r--r-- | libavcodec/decode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/decode.h b/libavcodec/decode.h index 15271c529a..c3e0e82f4c 100644 --- a/libavcodec/decode.h +++ b/libavcodec/decode.h @@ -64,6 +64,8 @@ typedef struct FrameDecodeData { */ int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt); +int ff_decode_bsfs_init(AVCodecContext *avctx); + void ff_decode_bsfs_uninit(AVCodecContext *avctx); /** |