mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
avimux: refuse caps with invalid framerate
Coverity 1139701
This commit is contained in:
parent
1be86ebb2a
commit
94720fd3a1
1 changed files with 2 additions and 0 deletions
|
@ -434,6 +434,8 @@ gst_avi_mux_vidsink_set_caps (GstPad * pad, GstCaps * vscaps)
|
|||
|
||||
avipad->parent.hdr.rate = gst_value_get_fraction_numerator (fps);
|
||||
avipad->parent.hdr.scale = gst_value_get_fraction_denominator (fps);
|
||||
if (avipad->parent.hdr.rate <= 0 || avipad->parent.hdr.scale <= 0)
|
||||
goto refuse_caps;
|
||||
|
||||
/* (pixel) aspect ratio data, if any */
|
||||
par = gst_structure_get_value (structure, "pixel-aspect-ratio");
|
||||
|
|
Loading…
Reference in a new issue