fix compile on old ffmpeg

This commit is contained in:
Isaac Connor 2017-06-06 15:35:17 -04:00
parent a9183a1599
commit 7d97267dd2
1 changed files with 2 additions and 0 deletions

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);