Re: [FFmpeg-devel] [PATCH] lavc: consider an error during decoder draining as EOF

2017-02-15 Thread Michael Niedermayer
On Wed, Feb 15, 2017 at 08:53:18AM +0100, wm4 wrote: > There is no reason that draining couldn't return an error or two. But > some decoders don't handle this very well, and might always return an > error. This can lead to API users getting into an infinite loop and > burning CPU, because no progre

[FFmpeg-devel] [PATCH] lavc: consider an error during decoder draining as EOF

2017-02-14 Thread wm4
There is no reason that draining couldn't return an error or two. But some decoders don't handle this very well, and might always return an error. This can lead to API users getting into an infinite loop and burning CPU, because no progress is made and EOF is never returned. In fact, ffmpeg.c cont