Re: [FFmpeg-devel] [PATCH 2/2] RFC ffmpeg: exit demuxers earlier after signal received

2021-03-14 Thread Michael Niedermayer
On Sat, Nov 28, 2020 at 02:46:54PM -0500, Andriy Gelman wrote: > From: Andriy Gelman > > We currently use the same interrupt_callback function for both muxers > and demuxers to break out of potential infinite loops. > > The function decode_interrupt_cb() checks for how many SIGINT/SIGTERM > inte

Re: [FFmpeg-devel] [PATCH 2/2] RFC ffmpeg: exit demuxers earlier after signal received

2021-03-13 Thread Andriy Gelman
On Sun, 07. Feb 15:04, Andriy Gelman wrote: > On Sat, 28. Nov 14:46, Andriy Gelman wrote: > > From: Andriy Gelman > > > > We currently use the same interrupt_callback function for both muxers > > and demuxers to break out of potential infinite loops. > > > > The function decode_interrupt_cb() ch

Re: [FFmpeg-devel] [PATCH 2/2] RFC ffmpeg: exit demuxers earlier after signal received

2021-02-07 Thread Andriy Gelman
On Sat, 28. Nov 14:46, Andriy Gelman wrote: > From: Andriy Gelman > > We currently use the same interrupt_callback function for both muxers > and demuxers to break out of potential infinite loops. > > The function decode_interrupt_cb() checks for how many SIGINT/SIGTERM > interrupts have been re

[FFmpeg-devel] [PATCH 2/2] RFC ffmpeg: exit demuxers earlier after signal received

2020-11-28 Thread Andriy Gelman
From: Andriy Gelman We currently use the same interrupt_callback function for both muxers and demuxers to break out of potential infinite loops. The function decode_interrupt_cb() checks for how many SIGINT/SIGTERM interrupts have been received, and (usually) two interrupts are needed to break o