mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
small compile fix
This commit is contained in:
parent
42aa65d92c
commit
32a47094d7
@ -204,12 +204,12 @@ open_subfile(const SubfileInfo &info) {
|
|||||||
void FfmpegVirtualFile::
|
void FfmpegVirtualFile::
|
||||||
close() {
|
close() {
|
||||||
if (_format_context != NULL) {
|
if (_format_context != NULL) {
|
||||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0)
|
#if LIBAVFORMAT_VERSION_MAJOR >= 54
|
||||||
avformat_close_input(&_format_context);
|
avformat_close_input(&_format_context);
|
||||||
#else
|
#else
|
||||||
av_close_input_file(_format_context);
|
av_close_input_file(_format_context);
|
||||||
#endif
|
|
||||||
_format_context = NULL;
|
_format_context = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_owns_in) {
|
if (_owns_in) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user