aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-04-21 15:36:59 +0800
committerJun Zhao <jun.zhao@intel.com>2018-04-22 15:39:22 +0800
commitf97fa89925a5d4df7deb8ed49262d497f07e1b0a (patch)
treee12537842e92535ec3af256e173d8467fe287f27
parent0c28a5cf0fc642825036c07c2b57b79c42583b27 (diff)
downloadffmpeg-f97fa89925a5d4df7deb8ed49262d497f07e1b0a.tar.gz
doc/examples/filtering_audio: Remove setting deprecated refcounted_frames
When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
-rw-r--r--doc/examples/filtering_audio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index b109dbcb96..834b137cd9 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) {