[FFmpeg-devel] examples/qsvdec: remove the deprecated field refcounted_frames

Submitted by Zhong Li on Jan. 10, 2018, 8:39 a.m.

Details

Message ID 1515573556-25386-1-git-send-email-zhong.li@intel.com
State New
Headers show

Commit Message

Zhong Li Jan. 10, 2018, 8:39 a.m.
It was just useful for deprecated API (avcodec_decode_video2),
but useless for new decode APIs (avcodec_send_packet/avcodec_receive_frame).

Signed-off-by: Zhong Li <zhong.li@intel.com>
---
 doc/examples/qsvdec.c | 1 -
 1 file changed, 1 deletion(-)

Comments

wm4 Jan. 10, 2018, 8:55 a.m.
On Wed, 10 Jan 2018 16:39:16 +0800
Zhong Li <zhong.li@intel.com> wrote:

> It was just useful for deprecated API (avcodec_decode_video2),
> but useless for new decode APIs (avcodec_send_packet/avcodec_receive_frame).
> 
> Signed-off-by: Zhong Li <zhong.li@intel.com>
> ---
>  doc/examples/qsvdec.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/doc/examples/qsvdec.c b/doc/examples/qsvdec.c
> index 46e6ddc..cede615 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;

LGTM

Patch hide | download patch | download mbox

diff --git a/doc/examples/qsvdec.c b/doc/examples/qsvdec.c
index 46e6ddc..cede615 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;