GNOME Bugzilla – Bug 704996
qtdemux: support for H264 fourcc
Last modified: 2013-07-29 09:53:54 UTC
Created attachment 250273 [details] [review] Patch Sample file has H264 fourcc (instead of avc1) and codec data is in strf atom. The file was created in QuickTime (i think) and play with desktop QuickTime and libav. https://s3.amazonaws.com/MatejK/Samples/h264fourcc.mov
commit 2dcdfe07f76dc7be5e8f9a3c8020d74d00dc1e3b Author: Matej Knopp <matej.knopp@gmail.com> Date: Sat Jul 27 18:10:22 2013 +0200 qtdemux: Support H264 fourcc https://bugzilla.gnome.org/show_bug.cgi?id=704996
I presume you make sure everywhere that you're not accessing atoms out of bounds? (i.e. check length before accessing data + X)
You mean when parsing the strf atom? It does same checking as the code that parses the avcC atom, i.e. not much :) probably could be improved.
Actually, it does seem to do worse. I'll submit a patch.
Created attachment 250357 [details] [review] Check for data size Sorry, this should have been in the first patch.
Comment on attachment 250357 [details] [review] Check for data size commit 47ed79fb1c8dafbd7c721e3b9bfb7723f4be3174 Author: Matej Knopp <matej.knopp@gmail.com> Date: Mon Jul 29 11:18:40 2013 +0200 qtdemux: Check for data size when parsing h264 codec data from strf atom Sorry for missing that