Message ID | 1524297282-2159-1-git-send-email-mypopydev@gmail.com |
---|---|
State | Accepted |
Commit | c6d8492cffc43cdd658e05474241fbce045a9167 |
Headers | show |
On Sat, 21 Apr 2018 15:54:40 +0800 Jun Zhao <mypopydev@gmail.com> wrote: > 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/hw_decode.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c > index 77ae8df..4a4e7fc 100644 > --- a/doc/examples/hw_decode.c > +++ b/doc/examples/hw_decode.c > @@ -211,7 +211,6 @@ int main(int argc, char *argv[]) > return -1; > > decoder_ctx->get_format = get_hw_format; > - av_opt_set_int(decoder_ctx, "refcounted_frames", 1, 0); > > if (hw_decoder_init(decoder_ctx, type) < 0) > return -1; 1-3 LGTM
diff --git a/doc/examples/hw_decode.c b/doc/examples/hw_decode.c index 77ae8df..4a4e7fc 100644 --- a/doc/examples/hw_decode.c +++ b/doc/examples/hw_decode.c @@ -211,7 +211,6 @@ int main(int argc, char *argv[]) return -1; decoder_ctx->get_format = get_hw_format; - av_opt_set_int(decoder_ctx, "refcounted_frames", 1, 0); if (hw_decoder_init(decoder_ctx, type) < 0) return -1;
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/hw_decode.c | 1 - 1 file changed, 1 deletion(-)