doc/examples/filtering_video: Remove setting deprecated refcounted_frames
authorJun Zhao <mypopydev@gmail.com>
Sat, 21 Apr 2018 07:34:23 +0000 (15:34 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 22 Apr 2018 07:38:40 +0000 (15:38 +0800)
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>
doc/examples/filtering_video.c

index ed4e7bb..38ff9bb 100644 (file)
@@ -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);
     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) {
 
     /* init the video decoder */
     if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0) {