mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fallback case for avformat_open_input
This commit is contained in:
parent
1d21ad016e
commit
8ce7ef28d8
@ -196,7 +196,11 @@ open_subfile(const SubfileInfo &info) {
|
||||
void FfmpegVirtualFile::
|
||||
close() {
|
||||
if (_format_context != NULL) {
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0)
|
||||
avformat_close_input(&_format_context);
|
||||
#else
|
||||
av_close_input_file(_format_context);
|
||||
#endif
|
||||
_format_context = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user