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 723892 - mpegts: Some bugfixes regarding packetizing
mpegts: Some bugfixes regarding packetizing
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal normal
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-08 12:31 UTC by Jesper Larsen
Modified: 2014-02-08 17:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpegts: Fix some packetizing bugs (2.81 KB, patch)
2014-02-08 12:31 UTC, Jesper Larsen
committed Details | Review
[V2] mpegts: Fix some packetizing bugs (2.86 KB, patch)
2014-02-08 16:44 UTC, Jesper Larsen
needs-work Details | Review
mpegts: Correctly check for PAT,PMT,CAT,TSDT (1.69 KB, patch)
2014-02-08 17:01 UTC, Jesper Larsen
committed Details | Review
mpegts: pmt: Detect descriptor length correct (908 bytes, patch)
2014-02-08 17:39 UTC, Jesper Larsen
committed Details | Review

Description Jesper Larsen 2014-02-08 12:31:35 UTC
Created attachment 268483 [details] [review]
mpegts: Fix some packetizing bugs

Fixes for some bugs that found their way into the newly merged mpegts section patches.
Comment 1 Sebastian Dröge (slomo) 2014-02-08 16:00:13 UTC
commit 972f7ea71f078648b0a895d07a1d1f16490eb3fa
Author: Jesper Larsen <knorr.jesper@gmail.com>
Date:   Sat Feb 8 13:08:02 2014 +0100

    mpegts: Fix some packetizing bugs
    
    - Length of NIT stream descriptors was not detected correct
    - Reserved bits was not set according to EN 300 468, ISO/IEC 13818-1
    - Also set output data size if the section was previously packetized
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723892
Comment 2 Jesper Larsen 2014-02-08 16:44:58 UTC
Created attachment 268508 [details] [review]
[V2] mpegts: Fix some packetizing bugs

A more clean implementation
Comment 3 Sebastian Dröge (slomo) 2014-02-08 16:52:32 UTC
Comment on attachment 268508 [details] [review]
[V2] mpegts: Fix some packetizing bugs

Can you provide this patch against latest git master? It does not apply anymore because of your previous patch :)
Comment 4 Jesper Larsen 2014-02-08 17:01:55 UTC
Created attachment 268509 [details] [review]
mpegts: Correctly check for PAT,PMT,CAT,TSDT

I had not seen that you had merged the patch.

This patch is not just for beauty, as it doesn't take a genius to spot that the if statement in the first patch is bogus. ;)

By some magic chance it did work on the first test case I used.

Anyway, this patch is a fix to the fix.

I'll step away from the git now and return when my heads i functional agian. ;)

Sorry for the noise in the history.
Comment 5 Jesper Larsen 2014-02-08 17:39:43 UTC
Created attachment 268513 [details] [review]
mpegts: pmt: Detect descriptor length correct

Found another small bug
Comment 6 Sebastian Dröge (slomo) 2014-02-08 17:40:36 UTC
Comment on attachment 268509 [details] [review]
mpegts: Correctly check for PAT,PMT,CAT,TSDT

Oops :) Well, with your broken patch it would almost always go into the 0x7000 case... so work as good as the previous code ;)

commit f1c8de4bc28eb28ea74c88c24fe8dddf047dc16a
Author: Jesper Larsen <knorr.jesper@gmail.com>
Date:   Sat Feb 8 17:43:03 2014 +0100

    mpegts: Correctly check for PAT,PMT,CAT,TSDT