[FFmpeg-devel] [PATCH] Fix segfault with x11grab when switching windows.

Matthew Smiglarski matthew.smiglarski at gmail.com
Fri May 1 09:54:28 CEST 2015


On Fri, May 1, 2015 at 12:29 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Apr 30, 2015 at 09:27:25PM +0100, Matthew Smiglarski wrote:
>> The segfault occurred when running ffmpeg with x11grab and specifying a
>> resolution size greater than the screen, alongside an offset:
>>
>> ./ffmpeg  -f x11grab -r 30 -s 1920x1147 -i :0.0+0,53 output.mkv

> is this still needed after dc83733f2bf2f26433bbf23d42fe92a2c7691df1 and f5c5aa968c3c96ff3968bd5b060e5a0f2f278732

No, no longer needed. Good fix.

The segfault is now avoided and the following message is seen:

[x11grab @ 0x28c7200] Capture area 1920x1147 at position 0.53 outside
the screen size 1366x768
:0.0+0,53: Invalid argument

(return code 1)


Thanks,
Matt


More information about the ffmpeg-devel mailing list