mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
Fixed a minor bug in avcodec_close
This commit is contained in:
parent
3af4f36127
commit
6137de1f17
@ -135,10 +135,10 @@ cleanup() {
|
|||||||
_buffer_alloc = 0;
|
_buffer_alloc = 0;
|
||||||
_buffer = 0;
|
_buffer = 0;
|
||||||
}
|
}
|
||||||
if (_audio_ctx) {
|
if ((_audio_ctx)&&(_audio_ctx->codec)) {
|
||||||
avcodec_close(_audio_ctx);
|
avcodec_close(_audio_ctx);
|
||||||
_audio_ctx = 0;
|
|
||||||
}
|
}
|
||||||
|
_audio_ctx = 0;
|
||||||
if (_format_ctx) {
|
if (_format_ctx) {
|
||||||
av_close_input_file(_format_ctx);
|
av_close_input_file(_format_ctx);
|
||||||
_format_ctx = 0;
|
_format_ctx = 0;
|
||||||
|
@ -144,10 +144,10 @@ cleanup() {
|
|||||||
delete _packet;
|
delete _packet;
|
||||||
_packet = 0;
|
_packet = 0;
|
||||||
}
|
}
|
||||||
if (_video_ctx) {
|
if ((_video_ctx)&&(_video_ctx->codec)) {
|
||||||
avcodec_close(_video_ctx);
|
avcodec_close(_video_ctx);
|
||||||
_video_ctx = 0;
|
|
||||||
}
|
}
|
||||||
|
_video_ctx = 0;
|
||||||
if (_format_ctx) {
|
if (_format_ctx) {
|
||||||
av_close_input_file(_format_ctx);
|
av_close_input_file(_format_ctx);
|
||||||
_format_ctx = 0;
|
_format_ctx = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user