Merge ../ZoneMinder.master into storageareas
commit
06da04c5d7
|
@ -64,7 +64,7 @@ Storage::Storage( unsigned int p_id ) {
|
|||
if ( ! id ) {
|
||||
if ( config.dir_events[0] != '/' ) {
|
||||
// not using an absolute path. Make it one by appending ZM_PATH_WEB
|
||||
snprintf( path, sizeof(path), "%s/%s", config.dir_events, staticConfig.PATH_WEB.c_str() );
|
||||
snprintf( path, sizeof (path), "%s/%s", staticConfig.PATH_WEB.c_str( ), config.dir_events );
|
||||
} else {
|
||||
strncpy(path, config.dir_events, sizeof(path) );
|
||||
}
|
||||
|
|
|
@ -573,8 +573,8 @@ if ( 1 ) {
|
|||
}
|
||||
|
||||
if ( opkt.dts != AV_NOPTS_VALUE ) {
|
||||
int64_t max = audio_output_stream->cur_dts + !(oc->oformat->flags & AVFMT_TS_NONSTRICT);
|
||||
if (audio_output_stream->cur_dts && audio_output_stream->cur_dts != AV_NOPTS_VALUE && max > opkt.dts) {
|
||||
int64_t max = video_output_stream->cur_dts + !(oc->oformat->flags & AVFMT_TS_NONSTRICT);
|
||||
if (video_output_stream->cur_dts && video_output_stream->cur_dts != AV_NOPTS_VALUE && max > opkt.dts) {
|
||||
Warning("st:%d PTS: %"PRId64" DTS: %"PRId64" < %"PRId64" invalid, clipping\n", opkt.stream_index, opkt.pts, opkt.dts, max);
|
||||
if( opkt.pts >= opkt.dts)
|
||||
opkt.pts = FFMAX(opkt.pts, max);
|
||||
|
|
Loading…
Reference in New Issue