GNOME Bugzilla – Bug 641400
[deinterlace] Handle image caps without asserting
Last modified: 2011-03-08 15:32:11 UTC
Deinterlace asserts if it gets caps with framerate=0/1 This happens when trying to open an image in totem (did this by mistake this morning)
Created attachment 180017 [details] [review] deinterlace: Handle image caps without asserting Images might have framerate=0/1 in the caps, which caused an assertion on deinterlace. I don't know of interlaced image formats but deinterlace might be hardcoded on some generic pipelines and it shouldn't assert. The fix was to set field_duration to 0 if the input has a framerate with a 0 numerator. This patch also adds checks for this situation on the unit tests.
Looks good.
Fixed by cb527623a31bf9cc701630f90c8754f336dd874b