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 345184 - [mpeg2dec] crash with video with pixel_width and pixel_height of 0
[mpeg2dec] crash with video with pixel_width and pixel_height of 0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
0.10.3
Other Linux
: Normal normal
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-17 16:53 UTC by Sven Arvidsson
Modified: 2006-06-19 15:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
possible fix (681 bytes, patch)
2006-06-17 19:09 UTC, Tim-Philipp Müller
none Details | Review

Description Sven Arvidsson 2006-06-17 16:53:02 UTC
Gstreamer can not play back the MPEG2 version of this movie.
http://www.archive.org/details/DasKabinettdesDoktorCaligariTheCabinetofDrCaligari

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

(gst-launch-0.10:3355): GStreamer-CRITICAL **: gst_value_set_fraction: assertion `denominator != 0' failed

GStreamer-ERROR **: file gstvalue.c: line 3553 (gst_value_compare_fraction): should not be reached
aborting...
Aborted

Version 0.10.3 of gstreamer0.10-plugins-ugly.
Comment 1 Tim-Philipp Müller 2006-06-17 19:09:19 UTC
Created attachment 67546 [details] [review]
possible fix

This seems to fix it, but I'm not sure if it's The Right Thing To Do...
Comment 2 Wim Taymans 2006-06-19 09:31:24 UTC
it can only be 0/0 if the aspect ratio code in the header is an undefined value. making it 1/1 is fine. The aspect ratio code in that video is 0x0c. It might be a known extension..
Comment 3 Wim Taymans 2006-06-19 09:49:27 UTC
fwiw, vlc assumes 4:3 on invalid ratios and this site recommends vlc.
Comment 4 Tim-Philipp Müller 2006-06-19 11:59:53 UTC
Committed using 4:3 as default rather than 1:1:

 2006-06-19  Tim-Philipp Müller  <tim at centricular dot net>

       * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_negotiate_format):
         Assume pixel-aspect-ratio of 4:3 if libmpeg2dec doesn't give us
         any PAR whatsoever (rather than using 0/0, which will lead to
         an abort later on). Fixes #345184.

Comment 5 Tim-Philipp Müller 2006-06-19 15:19:06 UTC
After some discussion on IRC it seems it might be better to assume a display aspect ratio of 4:3 rather than a pixel aspect ratio of 4:3. Hopefully I got it right this time:

 2006-06-19  Tim-Philipp Müller  <tim at centricular dot net>

        * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_negotiate_format):
          Assume 4:3 DAR rather than 4:3 PAR (#345184).