put in ffmpeg version test

This commit is contained in:
Isaac Connor 2017-06-08 12:22:28 -04:00
parent d524f98d43
commit 02b2d8a968
2 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,11 @@ if [ "$1" = "configure" ]; then
# Ensure zoneminder is stopped
deb-systemd-invoke stop zoneminder.service || exit $?
zmupdate.pl --nointeractive
OLD_DIR_EVENTS=mysql -u $ZM_DB_USER --password="$ZM_DB_PASS" -h $ZM_DB_HOST -N -B $ZM_DB_NAME <<EOF
SELECT Value FROM Config WHERE Name='ZM_DIR_EVENTS';
EOF
echo "Value of ZM_DIR_EVENTS is $OLD_DIR_EVENTS ";
zmupdate.pl --nointeractive -f
echo "Done Updating, starting ZoneMinder"
deb-systemd-invoke start zoneminder.service || exit $?

View File

@ -455,11 +455,13 @@ bool VideoStore::setup_resampler() {
// Now copy them to the output stream
audio_output_stream = avformat_new_stream( oc, audio_output_codec );
#if LIBAVCODEC_VERSION_CHECK(57, 0, 0, 0, 0)
ret = avcodec_parameters_from_context( audio_output_stream->codecpar, audio_output_context );
if ( ret < 0 ) {
Error( "Could not initialize stream parameteres");
return false;
}
#endif
AVDictionary *opts = NULL;
av_dict_set( &opts, "strict", "experimental", 0);