diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_frame.c ./libffsox-2/ffsox_frame.c --- ../bs1770gain-0.4.12/libffsox-2/ffsox_frame.c 2015-06-23 07:38:44.000000000 +0000 +++ ./libffsox-2/ffsox_frame.c 2018-06-24 00:20:40.757492455 +0000 @@ -48,7 +48,7 @@ goto frame; } - if (NULL!=codec&&(codec->capabilities&CODEC_CAP_VARIABLE_FRAME_SIZE)) + if (NULL!=codec&&(codec->capabilities&AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) nb_samples=10000; else nb_samples=cc->frame_size; diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_frame_writer.c ./libffsox-2/ffsox_frame_writer.c --- ../bs1770gain-0.4.12/libffsox-2/ffsox_frame_writer.c 2015-06-23 07:38:44.000000000 +0000 +++ ./libffsox-2/ffsox_frame_writer.c 2018-06-24 00:20:40.757492455 +0000 @@ -66,7 +66,7 @@ goto open; if (fw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) - fw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER; + fw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER; fw->so.st->time_base=fw->so.cc->time_base; //fw->so.st->time_base=fr->si.st->time_base; diff -u -r ../bs1770gain-0.4.12/libffsox-2/ffsox_packet_writer.c ./libffsox-2/ffsox_packet_writer.c --- ../bs1770gain-0.4.12/libffsox-2/ffsox_packet_writer.c 2015-06-23 07:38:44.000000000 +0000 +++ ./libffsox-2/ffsox_packet_writer.c 2018-06-24 00:20:59.189280111 +0000 @@ -65,7 +65,7 @@ pw->so.cc->codec_tag=0; if (pw->so.fc->oformat->flags&AVFMT_GLOBALHEADER) - pw->so.cc->flags|=CODEC_FLAG_GLOBAL_HEADER; + pw->so.cc->flags|=AV_CODEC_FLAG_GLOBAL_HEADER; if (ffsox_sink_append(so,&pw->si,&pw->so)<0) { DMESSAGE("appending output stream");