Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-07-27 02:42:27 +0300
committerJames Almer <jamrial@gmail.com>2018-08-17 05:43:12 +0300
commit94fe138de0ba5892a7051f5b47c191a41b78805a (patch)
tree93760c3bab76f3630feebf71085277479eaa0b6a /libavcodec/decode.h
parent2954e513930f9b1bc2cfba49eed3fc1911e76892 (diff)
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.h2
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);
/**