GNOME Bugzilla – Bug 349939
[jpeg] [smoke] support dimensions that are not a multiple of 16
Last modified: 2013-04-24 15:02:41 UTC
gst-launch-0.10 videotestsrc ! video/x-raw-rgb, bpp=32, depth=24, endianness=4321, red_mask=65280, green_mask=16711680, blue_mask=-16777216, width=320, height=240, framerate=\(fraction\)25/1, pixel-aspect-ratio=\(fraction\)1/1 ! ffmpegcolorspace ! smokeenc ! smokedec ! fakesink gives: (gst-launch-0.10:6012): GStreamer-CRITICAL **: gst_value_set_fraction: assertion `denominator != 0' failed Debug from smokedec: (gst-launch-0.10:6064): GStreamer-CRITICAL **: gst_value_set_fraction: assertion `denominator != 0' failed DEBUG (0x813b0a0 - 0:00:00.492930000) GST_CAPS( 6064) gstpad.c(2279):gst_pad_set_caps:<smokedec0:src> caps video/x-raw-yuv, format=(fourcc)I420, width=(int)0, height=(int)0, framerate=(fraction)0/0
sorry replace 320 and 240 in filtercaps with 90 and 90
Fixed asserts by erroring out correctly: 2006-08-08 Tim-Philipp Müller <tim at centricular dot net> * ext/jpeg/gstsmokedec.c: (gst_smokedec_chain): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_setcaps), (gst_smokeenc_resync), (gst_smokeenc_chain): Refuse sink caps in the encoder if width or height is not a multiple of 16, the encoder does not support that yet; along the same lines, check the return value of the encoder setup function; also remove some debug log clutter.