GNOME Bugzilla – Bug 608651
dshowvideosink.cpp crash
Last modified: 2010-02-02 00:26:59 UTC
Created attachment 152704 [details] [review] dshowvideosink.cpp patch dshowvideosink will crash sometimes if it encounters an unknown format. According to MSDN: "In any function that receives an AM_MEDIA_TYPE parameter, always validate the values of cbFormat and formattype before dereferencing the pbFormat member." I attached a patch and an example video (dnxhd test from FFmpeg) that causes gst to crash on windows using this sink.
The sample video was too large to attach. Run make check from a newer ffmpeg build and then use <FFmpeg build tree>/tests/data/a-dnxhd-1080i.mov.
Created attachment 152706 [details] [review] dshowvideosink.cpp patch
Review of attachment 152704 [details] [review]: Looks fine. Should take this.
commit 584ac24ba01f0f33e4f2732c1a5b2da7769e79ab Author: David Hoyt <dhoyt@llnl.gov> Date: Mon Feb 1 16:26:36 2010 -0800 dshowvideosink: don't crash on invalid AM_MEDIA_TYPE