avcodec/decode: flush the internal bsfs instead of constantly reinitalizing them
authorJames Almer <jamrial@gmail.com>
Thu, 26 Jul 2018 23:42:27 +0000 (20:42 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 17 Aug 2018 02:43:12 +0000 (23:43 -0300)
commit94fe138de0ba5892a7051f5b47c191a41b78805a
tree93760c3bab76f3630feebf71085277479eaa0b6a
parent2954e513930f9b1bc2cfba49eed3fc1911e76892
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>
libavcodec/decode.c
libavcodec/decode.h
libavcodec/utils.c