Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我可以在打开的上下文上使用avcodec_free_context()吗?_C_Ffmpeg - Fatal编程技术网

我可以在打开的上下文上使用avcodec_free_context()吗?

我可以在打开的上下文上使用avcodec_free_context()吗?,c,ffmpeg,C,Ffmpeg,最新文档指出,不再支持打开再次关闭的上下文。我明白了。某些编解码器在重新打开时无法正常工作。因此,在发现这个bug之后,我决定不使用avcodec\u close(),而是立即在上下文中调用avcodec\u free\u context() 但我不确定使用2.8.4(我链接到我的程序的版本)这样做是否安全。当时的文件没有澄清。有人知道吗?至少在经验上 ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers built

最新文档指出,不再支持打开再次关闭的上下文。我明白了。某些编解码器在重新打开时无法正常工作。因此,在发现这个bug之后,我决定不使用
avcodec\u close()
,而是立即在上下文中调用
avcodec\u free\u context()

但我不确定使用2.8.4(我链接到我的程序的版本)这样做是否安全。当时的文件没有澄清。有人知道吗?至少在经验上

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
built with Microsoft (R) C/C++ 최적화 컴파일러 버전 18.00.31101(x64)
configuration: --toolchain=msvc --enable-gpl --enable-nonfree --enable-nvenc --enable-libvorbis --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libx265 --enable-libxvid --enable-libopus --enable-libvpx --enable-static --disable-shared --disable-debug --extra-cflags=-MT --extra-cxxflags=-MT --extra-ldflags='/nodefaultlib:msvcrt.lib' --extra-libs='zlib.lib libogg_static.lib libvorbis_static.lib libmpghip-static.lib libmp3lame-static.lib libtheora_static.lib libx264.lib x265-static.lib libxvidcore.lib silk_fixed.lib silk_common.lib silk_float.lib celt.lib opus.lib vpxmt.lib'
libavutil      54. 31.100 / 54. 31.100
libavcodec     56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 40.101 /  5. 40.101
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.101 /  1.  2.101
libpostproc    53.  3.100 / 53.  3.100

我知道有很多论坛我可以发布,但我想先在这里问一下。

我也知道我可以编译最新版本,将其链接到我的程序。那样做了。API更改太多,无法编译。“使用avcodec_free_context()销毁编解码器上下文(打开或关闭)。”我认为这相当清楚地意味着您可以在打开的上下文中使用它。@Kninnug不适用于2.8版doc。你又是那些诵读困难的评论者之一?