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 726829 - codecparsers: h264: fix skipping of unsupported SEI messages
codecparsers: h264: fix skipping of unsupported SEI messages
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-21 16:01 UTC by Gwenole Beauchesne
Modified: 2014-05-20 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
codecparsers: h264: fix skipping of unsupported SEI messages (1.56 KB, patch)
2014-03-21 16:29 UTC, Gwenole Beauchesne
committed Details | Review

Description Gwenole Beauchesne 2014-03-21 16:01:29 UTC
Hi, this patch fixes skipping of unsupported SEI messages, whereby the payloadSize element shall represent the number of bytes in the payload, excluding any other emulation prevention bytes. In essence, nal_reader_skip_to_next_byte() doesn't make much sense to me, IMHO.
Comment 1 Gwenole Beauchesne 2014-03-21 16:29:11 UTC
Created attachment 272572 [details] [review]
codecparsers: h264: fix skipping of unsupported SEI messages

Optimizations are still possible, as we should be aligned to byte boundaries already. Besides, the future of nal_skip_to_next_byte() is yet to be decided. I can kill it altogether, if desired: it's unused now.
Comment 2 Gwenole Beauchesne 2014-03-21 16:30:55 UTC
In conjunction with patch for bug #685890, this fixes sony-hdr-cx-6-avchd-1080i-3-seconds.mts
Comment 3 Tim-Philipp Müller 2014-05-20 12:16:23 UTC
This was pushed ages ago. Gwenole, could you please close bugs when you push the patches?

commit 1b421808175ab96bf6fd22ccddb49837c152a72c
Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Date:   Fri Mar 21 17:07:19 2014 +0100

    codecparsers: h264: fix skipping of unsupported SEI messages.
    
    The payloadSize does not account for emulation prevention bytes. So,
    just use nal_reader_skip() for skipping payload_size bits. It should
    be possible to further optimize this code since the NAL reader shall
    be aligned to byte boundary already.
    
    Kill the now unused nal_reader_skip_to_next_byte() function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726829
    
    Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Comment 4 Gwenole Beauchesne 2014-05-20 12:24:42 UTC
Hmm, sorry, either I missed those, or I closed another bug instead. I will have to check. :)