[FFmpeg-devel] [RFC]Workaround a crash in ffplay / SDL
Reimar.Doeffinger at gmx.de
Wed May 29 21:09:31 CEST 2013
On Wed, May 29, 2013 at 03:48:46PM +0200, Carl Eugen Hoyos wrote:
> Attached patch is meant to fix / workaround ticket #2428, but with the patch,
> SDL_WaitThread in stream_close() hangs if the condition triggers.
> On my system, the following work fine:
> $ ffplay -f rawvideo -s 16383x1365 -i /dev/zero
> $ ffplay -f rawvideo -s 5593x4000 -i /dev/zero
> The following fails as expected with "X Error of failed request: BadLength":
> $ ffplay -f rawvideo -s 16383x1366 -i /dev/zero
> $ ffplay -f rawvideo -s 5594x4000 -i /dev/zero
Slightly different for me on my 64 bit desktop, up to -s 16383x16129
Above gives errors from FFmpeg:
[IMGUTILS @ 0x7f896c072bc0] Picture size 16383x16130 is invalid
> The following crashes here without attached patch similar to the sample in
> ticket #2428:
> $ ffplay -f rawvideo -s 16384x1000 -i /dev/zero
> $ ffplay -f rawvideo -s 1000x17000 -i /dev/zero
I don't really understand why the issue starts exactly with 2^14 though.
Out of curiosity I also tested with MPlayer, and -vo sdl shows exactly
the same issue.
However -vo xv, x11 and gl work fine even with the larger sizes (well,
x11 complains about not being able to use shared memory since the limit
seems to be 32 MB by default - quite ridiculous on a 64 bit system with
many GB of RAM).
More information about the ffmpeg-devel