diff mbox

[FFmpeg-devel,3/3] doc/examples/filtering_audio: Remove setting deprecated refcounted_frames

Message ID 1524297282-2159-3-git-send-email-mypopydev@gmail.com
State Accepted
Commit f97fa89925a5d4df7deb8ed49262d497f07e1b0a
Headers show

Commit Message

Jun Zhao April 21, 2018, 7:54 a.m. UTC
When use new decode APIs(avcodec_send_packet/avcodec_receive_frame),
don't need to setting the deprecated field refcounted_frames.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 doc/examples/filtering_audio.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c
index b109dbc..834b137 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) {