X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fexamples%2Ffiltering_audio.c;h=834b137cd93fb89b3e83fc8a15f18a5c5193c1b9;hb=14fe81b3a88dfe4dbac12e8715f9a3f05b5ef1bf;hp=73a00e814c1ab4657bf758d1e05bb507c814c1cc;hpb=d28eb0e34d80f12b779c7b6befc5b350ffcdf476;p=ffmpeg diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index 73a00e814c1..834b137cd93 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -74,7 +74,6 @@ static int open_input_file(const char *filename) if (!dec_ctx) return AVERROR(ENOMEM); avcodec_parameters_to_context(dec_ctx, fmt_ctx->streams[audio_stream_index]->codecpar); - av_opt_set_int(dec_ctx, "refcounted_frames", 1, 0); /* init the audio decoder */ if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0) { @@ -228,8 +227,6 @@ int main(int argc, char **argv) exit(1); } - avfilter_register_all(); - if ((ret = open_input_file(argv[1])) < 0) goto end; if ((ret = init_filters(filter_descr)) < 0)