ffmpeg | branch: master | Jun Zhao <mypopy...@gmail.com> | Sat Apr 21 15:34:23 2018 +0800| [0c28a5cf0fc642825036c07c2b57b79c42583b27] | committer: Jun Zhao
doc/examples/filtering_video: 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 <nfx...@googlemail.com> Signed-off-by: Jun Zhao <mypopy...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c28a5cf0fc642825036c07c2b57b79c42583b27 --- doc/examples/filtering_video.c | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c index ed4e7bbd81..38ff9bb7db 100644 --- a/doc/examples/filtering_video.c +++ b/doc/examples/filtering_video.c @@ -77,7 +77,6 @@ static int open_input_file(const char *filename) if (!dec_ctx) return AVERROR(ENOMEM); avcodec_parameters_to_context(dec_ctx, fmt_ctx->streams[video_stream_index]->codecpar); - av_opt_set_int(dec_ctx, "refcounted_frames", 1, 0); /* init the video decoder */ if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog