Re: [FFmpeg-devel] [PATCH] avcodec/libdav1d: reset pool size on allocation failure

2019-03-19 Thread James Almer
On 3/15/2019 11:55 PM, James Almer wrote: > Signed-off-by: James Almer > --- > No testcase for this, just the theoretical scenario where a library user could > flush the decoder after ENOMEM was signaled here, then pass new data where a > frame with the same size as the last successfully allocated

[FFmpeg-devel] [PATCH] avcodec/libdav1d: reset pool size on allocation failure

2019-03-15 Thread James Almer
Signed-off-by: James Almer --- No testcase for this, just the theoretical scenario where a library user could flush the decoder after ENOMEM was signaled here, then pass new data where a frame with the same size as the last successfully allocated one is the first in line. libavcodec/libdav1d.c |