Skip to content

Commit 03c0960

Browse files
Merge branch 'ni_quadra' of github.com:ZoneMinder/zoneminder into ni_quadra
2 parents 8b233a0 + b96dc1d commit 03c0960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/zm_ffmpeg_camera.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ int FfmpegCamera::OpenFfmpeg() {
326326
if (ret < 0) {
327327
Warning("Could not parse ffmpeg input options '%s'", mOptions.c_str());
328328
}
329+
av_dict_set(&opts, "xcoder-params", nullptr, AV_DICT_MATCH_CASE);
329330
}
330331

331332
// Set transport method as specified by method field, rtpUni is default

src/zm_remote_camera_rtsp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ RemoteCameraRtsp::RemoteCameraRtsp(
8686
RemoteCameraRtsp::~RemoteCameraRtsp() {
8787

8888
if ( mVideoCodecContext ) {
89-
avcodec_close(mVideoCodecContext);
90-
mVideoCodecContext = nullptr; // Freed by avformat_free_context in the destructor of RtspThread class
89+
avcodec_free_context(&mVideoCodecContext);
9190
}
9291
// Is allocated in RTSPThread and is free there as well
9392
mFormatContext = nullptr;

0 commit comments

Comments
 (0)