GNOME Bugzilla – Bug 796878
qtdemux: Only set width/height in caps if they're non-0
Last modified: 2018-10-19 12:34:59 UTC
There exist some files where it is set to 0, but the actual sizes can be retrieved from the bitstream. FFmpeg can read and transmux them just fine into valid files by extracting the resolution from the bistream, but we can't. By just not putting it into the caps, we can make this "just work".
Created attachment 373174 [details] [review] qtdemux: Only set width/height in caps if they're non-0 If they are not valid, then let a downstream parser complete them.
Review of attachment 373174 [details] [review]: I agree with this one.
Seems like this could be worth a test.
Makes sense, yes
Olivier, got such a (smallish) file we could add to the validate testsuite ?
Created attachment 373466 [details] Slightly too big example file Here is one such file, it's 500k, so not incredibly small. But if we have a smaller .mp4 file, we can craft one by setting the frame size to 0.
Attachment 373174 [details] pushed as 20d5f92 - qtdemux: Only set width/height in caps if they're non-0
Pushed to master and 1.14