Re: [FFmpeg-devel] [PATCH] avformat/mpegenc: Fix ever growing FIFO and infinite loop on error

2022-04-05 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Since the switch to the new FIFO API in commit > ea511196a6c85eb433e10cdbecb0b2c722faf20d, the FIFO is always > grown by the amount of data intended to be written into it > even in case the FIFO has enough free space. Fix this by > only growing the FIFO if needed and then only

[FFmpeg-devel] [PATCH] avformat/mpegenc: Fix ever growing FIFO and infinite loop on error

2022-04-01 Thread Andreas Rheinhardt
Since the switch to the new FIFO API in commit ea511196a6c85eb433e10cdbecb0b2c722faf20d, the FIFO is always grown by the amount of data intended to be written into it even in case the FIFO has enough free space. Fix this by only growing the FIFO if needed and then only by the amount that is actuall