GNOME Bugzilla – Bug 592232
[qtdemux] QT style string tag extraction fails
Last modified: 2009-08-18 17:08:11 UTC
Created attachment 141087 [details] [review] Use guint32 for tag fourcc Apple trailers have some tags stored in QT style format, which a.o. means fourcc starts with (C) symbol. A specific code path tests for this using: if ((type >> 24) == 0xa9) However, type is int, so sign-extension messes with shift and subsequent comparison.
Comment on attachment 141087 [details] [review] Use guint32 for tag fourcc Nice catch indeed. I think what happens to the highest bit here is basically undefined according to the standard(s). Please commit.
commit 15d17763c0c8a89ef3e65a9ae1252f1aa1449a94 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Tue Aug 18 17:16:11 2009 +0200 qtdemux: fix qt style string tag extraction QT style tags are tested on starting with (C) symbol using >>, and (unsigned) int (may) have different >> behaviour. Fixes #592232.