After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349939 - [jpeg] [smoke] support dimensions that are not a multiple of 16
[jpeg] [smoke] support dimensions that are not a multiple of 16
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-04 14:12 UTC by Zaheer Abbas Merali
Modified: 2013-04-24 15:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zaheer Abbas Merali 2006-08-04 14:12:07 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
Comment 1 Zaheer Abbas Merali 2006-08-04 14:15:26 UTC
sorry replace 320 and 240 in filtercaps with 90 and 90
Comment 2 Tim-Philipp Müller 2006-08-08 14:42:28 UTC
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.