Re: [FFmpeg-devel] [PATCH] ffmpeg: Properly handle EOF return when flushing encoder

2019-10-23 Thread James Almer
On 10/23/2019 9:11 AM, Andriy Gelman wrote: > From: Andriy Gelman > > When flushing an encoder we send a NULL frame to avcodec_send_frame() > and then deque all compressed packets in avcodec_recieve_packet() until > AVERROR(EAGAIN) is returned (indicating that all compressed packets have > been r

[FFmpeg-devel] [PATCH] ffmpeg: Properly handle EOF return when flushing encoder

2019-10-23 Thread Andriy Gelman
From: Andriy Gelman When flushing an encoder we send a NULL frame to avcodec_send_frame() and then deque all compressed packets in avcodec_recieve_packet() until AVERROR(EAGAIN) is returned (indicating that all compressed packets have been removed). The second time that avcodec_send_frame() is ca