mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-17 21:38:45 -04:00
free contexts
This commit is contained in:
@@ -570,6 +570,16 @@ Debug(3, "dts:%d, pts:%d", pkt.dts, pkt.pts );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#if LIBAVCODEC_VERSION_CHECK(57, 64, 0, 64, 0)
|
||||
if ( video_in_ctx ) {
|
||||
avcodec_free_context(&video_in_ctx);
|
||||
video_in_ctx = NULL;
|
||||
}
|
||||
if ( video_out_ctx ) {
|
||||
avcodec_free_context(&video_out_ctx);
|
||||
video_out_ctx = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
// When will be not using a file ? // Might someday use this for streaming
|
||||
if ( !(out_format->flags & AVFMT_NOFILE) ) {
|
||||
|
||||
Reference in New Issue
Block a user