summaryrefslogtreecommitdiff
path: root/doc/examples/qsvdec.c
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2017-12-28 17:38:33 +0800
committerLuca Barbato <lu_zero@gentoo.org>2017-12-29 16:13:02 +0000
commit1efbbfedcaf4a3cecab980273ad809ba3ade2f74 (patch)
treec6fdc429d170d67501fc74341aabc7582d089b68 /doc/examples/qsvdec.c
parente23190269fb6e8217d080918893641ba3e0e3556 (diff)
examples/qsvdec: do not set the deprecated field refcounted_frames
It is used by the deprecated API avcodec_decode_video2 and ignored by the new decode APIs (avcodec_send_packet/avcodec_receive_frame). Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'doc/examples/qsvdec.c')
-rw-r--r--doc/examples/qsvdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/examples/qsvdec.c b/doc/examples/qsvdec.c
index 46e6ddcb0d..cede6153be 100644
--- a/doc/examples/qsvdec.c
+++ b/doc/examples/qsvdec.c
@@ -210,7 +210,6 @@ int main(int argc, char **argv)
video_st->codecpar->extradata_size);
decoder_ctx->extradata_size = video_st->codecpar->extradata_size;
}
- decoder_ctx->refcounted_frames = 1;
decoder_ctx->opaque = &decode;
decoder_ctx->get_format = get_format;