GNOME Bugzilla – Bug 595942
[qtdemux] issue with corrupted 3gp file
Last modified: 2009-09-25 09:57:21 UTC
the file is correctly play with Quicktime but doesn't works with gstreamer. the issue is maybe coming from audio not well supported.
Created attachment 143687 [details] 3gp file with issue
it seem that one stts_data give an invalid duration (maybe) due to file corruption: qtdemux qtdemux.c:3605:qtdemux_parse_samples:<demux> block 3, 1 timestamps, duration 4294917294 Can we detect this kind of invalid duration and maybe replace it by the min_duration ?
Created attachment 143713 [details] [review] patch draft
I have made the same test with the latest delivery of qtdemux done by Tim-Philipp Müller, the issue still occur and the correction seem to be the same. I'm not very sure that testing duration > 0xFFFF0000 while not generate regression on other streams.
commit 03f46a42e59a2729327c51b3ee77abdaf022b38e Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Sep 25 11:54:06 2009 +0200 qtdemux: add durations modulo 1<<32 For calculating the durations of each sample, we are supposed to add each duration modulo 1<<32 so make the elapsed time counter a uint32. Fixes #595942