[FFmpeg-devel] [PATCH] Prevents crash from CreateDeviceEx and proper fallback to classic d3d9.
mont3z.claro5 at gmail.com
Thu Jan 4 00:34:59 EET 2018
> LGTM, but when does it happen? Why would creation of IDirect3D9Ex
> succeed, but this method fail? The strangest thing being that
> CreateDeviceEx apparently fails, even though modeex is
> zero-initialized and doesn't contain any pointers.
> Anyway, please format the commit message according to project
> standards, and add anything you might know about this to the commit
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
Thx for your reply.
Our software uses an old Directx SDK (June 2010) and it works fine
with ffmpeg 3.1.4.
However it was crashing with the new ffmpeg 3.4. I've noticed that
there was a crash with a memory violation when executing
Unhandled exception at 0x000007FEF10974A3 (d3d9.dll) in
crash_dump.dmp: 0xC0000005: Access violation reading location
This crash prevent ffmpeg from falling back to the classic format.
Actually an error was being issued by
IDirect3D9Ex_GetAdapterDisplayModeEx but this was never caught.
After this patch, ffmpeg is falling back to the classic format and no
crashes take place.
I'll update the message and resubmit the patch.
More information about the ffmpeg-devel