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 781458 - qtdemux: allow larger files
qtdemux: allow larger files
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 1.12.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-04-18 16:30 UTC by Michael Olbrich
Modified: 2017-08-17 10:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
qtdemux: allow larger files (909 bytes, patch)
2017-04-18 16:30 UTC, Michael Olbrich
committed Details | Review

Description Michael Olbrich 2017-04-18 16:30:45 UTC
Created attachment 350011 [details] [review]
qtdemux: allow larger files

For really long files such as contiguous recordings of a whole day, the
50MB limit is not sufficient.
Comment 1 Sebastian Dröge (slomo) 2017-04-18 17:53:40 UTC
Comment on attachment 350011 [details] [review]
qtdemux: allow larger files

Makes sense but maybe we should just get rid of the limit at all? Or make it dependent on the track duration (but we might not know that yet?)?
Comment 2 Michael Olbrich 2017-04-19 08:12:02 UTC
The duration is unknown at that point. I suppose we could remove the limit.
The sample count is already checked against the available input data, so it
cannot be too large. I'll update the patch.
Comment 3 Tim-Philipp Müller 2017-04-19 08:19:18 UTC
IIRC the limit was introduced for security/sanity checking reasons so we don't end up mallocing too much and aborting.
Comment 4 Michael Olbrich 2017-04-19 09:51:06 UTC
In that case, I don't see any other solution than my current patch.
Comment 5 Sebastian Dröge (slomo) 2017-04-19 09:56:51 UTC
Question then is what exactly is too large. 200MB will be too large already in some cases but not in others, but the same is true for 50MB probably. Any static number here seems wrong, but I don't have any better suggestion either :)
Comment 6 Michael Olbrich 2017-04-19 12:00:58 UTC
One thing I noticed: We will not abort here. The memory is allocated with g_try_new0() and possible failures are handled correctly. But on Linux it's more likely that the application is killed by the OOM killer anyway. That's not good either.
Comment 7 Sebastian Dröge (slomo) 2017-08-10 13:18:11 UTC
Attachment 350011 [details] pushed as 61429a7 - qtdemux: allow larger files
Comment 8 Sebastian Dröge (slomo) 2017-08-10 13:18:50 UTC
I also ran into this with a file containing raw audio