Am 06.09.2017 um 23:07 schrieb Philip Langdale:
On Wed, 6 Sep 2017 18:14:17 +0200
Timo Rothenpieler wrote:
+int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
+{
+CUresult cu_res;
+CUcontext dummy;
+NvencSurface *tmpoutsurf;
You can remove tmpoutsurf in ff_nvenc_se
On Wed, 6 Sep 2017 18:14:17 +0200
Timo Rothenpieler wrote:
> >> +int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
> >> +{
> >> +CUresult cu_res;
> >> +CUcontext dummy;
> >> +NvencSurface *tmpoutsurf;
> >
> > You can remove tmpoutsurf in ff_nvenc_send_frame
>
> B
+int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
+{
+CUresult cu_res;
+CUcontext dummy;
+NvencSurface *tmpoutsurf;
You can remove tmpoutsurf in ff_nvenc_send_frame
But it's used in it? At the very end, to move the frames between queues.
smime.p7s
Description: S
On Sat, 2 Sep 2017 21:27:03 +0200
Timo Rothenpieler wrote:
> Signed-off-by: Timo Rothenpieler
> ---
> libavcodec/nvenc.c | 65
> -
> libavcodec/nvenc.h | 6 + libavcodec/nvenc_h264.c | 6 +
> libavcodec/nvenc_hevc.c | 4 +++
>
Signed-off-by: Timo Rothenpieler
---
libavcodec/nvenc.c | 65 -
libavcodec/nvenc.h | 6 +
libavcodec/nvenc_h264.c | 6 +
libavcodec/nvenc_hevc.c | 4 +++
4 files changed, 70 insertions(+), 11 deletions(-)
diff --git a/libavcode