Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: refcount input frame mappings

2018-01-28 Thread Timo Rothenpieler
applied together with some other minor fixes. Also backported to 3.4 and 3.3, as it fixes a crash. smime.p7s Description: S/MIME Cryptographic Signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-d

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: refcount input frame mappings

2018-01-27 Thread Philip Langdale
On Fri, 26 Jan 2018 20:18:30 +0100 Timo Rothenpieler wrote: > If some logic like vsync in ffmpeg.c duplicates frames, it might pass > the same frame twice, which will result in a crash due it being > effectively mapped and unmapped twice. > > Signed-off-by: Timo Rothenpieler > --- > libavcodec

[FFmpeg-devel] [PATCH] avcodec/nvenc: refcount input frame mappings

2018-01-26 Thread Timo Rothenpieler
If some logic like vsync in ffmpeg.c duplicates frames, it might pass the same frame twice, which will result in a crash due it being effectively mapped and unmapped twice. Signed-off-by: Timo Rothenpieler --- libavcodec/nvenc.c | 39 +++ libavcodec/nvenc.h |