aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/bayer_template.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-18 07:01:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-28 02:03:15 +0200
commit29f5c1e51b0d156f4650b96ab56c07727fe9a9b7 (patch)
tree2a52147902168fb65a3de28baddd76cdac0e11a0 /libswscale/bayer_template.c
parentd07534b5f5f20b4f780f5b0284aca6354da00695 (diff)
downloadffmpeg-29f5c1e51b0d156f4650b96ab56c07727fe9a9b7.tar.gz
avcodec/avcodec: Store whether AVCodec->close needs to be called
Right now all AVCodecContexts except those using frame-threaded decoding call the codec's init function and expect its close function to be called. In order to make sure that the close function is not called for frame-threaded decoding ff_frame_thread_free() resets AVCodecContext.codec (and because of this it has to free the private AVOptions of the main AVCodecContext itself). This is not obvious and potentially fragile. Instead add a field to AVCodecInternal that indicates whether close should be called for this AVCodecContext. It is always zero when using frame-threaded decoding, so that resetting the codec is no longer necessary and has been removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswscale/bayer_template.c')
0 files changed, 0 insertions, 0 deletions