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 348976 - [xviddec] crashes after invalid unit size warning
[xviddec] crashes after invalid unit size warning
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-27 19:13 UTC by Vincent Torri
Modified: 2006-07-28 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Torri 2006-07-27 19:13:05 UTC
I have tested xviddec with the following command : 

torri@doursse ~ $ gst-launch filesrc location=/mnt/win_d/provi/blood.avi ! avidemux ! xviddec ! ffmpegcolorspace ! ximagesink

I get :

** (gst-launch-0.10:11484): WARNING **: Size 563200 is not a multiple of unit size 422400
ERROR: from element /pipeline0/ffmpegcsp0: subclass did not specify output size

with ffdec_mpeg4 instead of xviddec, there is no problem

When I use my seek test programs (see http://www.iecn.u-nancy.fr/~torri/files/gstreamer_test_seek/), there is a segfault, and the backtrace is : 

gst_xviddec_setcaps (pad=0x0, caps=0x0) at gstxviddec.c:660
660         if (G_VALUE_TYPE (val) == GST_TYPE_LIST) {
(gdb) bt
  • #0 gst_xviddec_setcaps
    at gstxviddec.c line 660
  • #1 gst_pad_set_caps
    at gstpad.c line 2271
  • #2 gst_pad_chain_unchecked
    at gstpad.c line 2328
  • #3 gst_pad_push
    at gstpad.c line 3486
  • #4 gst_avi_demux_loop
    at gstavidemux.c line 2565
  • #5 gst_task_func
    at gsttask.c line 193
  • #6 g_thread_pool_thread_proxy
    at gthreadpool.c line 114
  • #7 g_thread_create_proxy
    at gthread.c line 564
  • #8 start_thread
    from /lib/tls/libpthread.so.0
  • #9 clone
    from /lib/tls/libc.so.6

Comment 1 Tim-Philipp Müller 2006-07-28 10:20:27 UTC
This fixes it for me:

 2006-07-28  Tim-Philipp Müller  <tim at centricular dot net>

       * ext/xvid/gstxvid.c: (gst_xvid_image_fill):
         Fix size calculation for I420/YV12. Fixes #348976.

There's plenty other crack in xviddec/enc to cause problems though ... ;)