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 659087 - celt: various cleanups/fixes
celt: various cleanups/fixes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-09-14 19:27 UTC by Vincent Penquerc'h
Modified: 2011-09-19 07:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
celtenc: allow actually overriding frame size (1.97 KB, patch)
2011-09-14 19:27 UTC, Vincent Penquerc'h
committed Details | Review
celtdec: fix error checking with libcelt 0.11 (963 bytes, patch)
2011-09-14 19:27 UTC, Vincent Penquerc'h
committed Details | Review
celtenc: do not use invalid buffer timestamps (950 bytes, patch)
2011-09-14 19:27 UTC, Vincent Penquerc'h
committed Details | Review
celtenc: cleanup header creation (2.27 KB, patch)
2011-09-14 19:27 UTC, Vincent Penquerc'h
committed Details | Review
celt: a bit more error checking on header parsing (1.85 KB, patch)
2011-09-14 19:27 UTC, Vincent Penquerc'h
committed Details | Review

Description Vincent Penquerc'h 2011-09-14 19:27:32 UTC
Though while submitting a small patch to libcelt, I'm told
it's essentially obsolete, and all work is going into Opus
now, so I won't hack on this further.
Comment 1 Vincent Penquerc'h 2011-09-14 19:27:35 UTC
Created attachment 196536 [details] [review]
celtenc: allow actually overriding frame size
Comment 2 Vincent Penquerc'h 2011-09-14 19:27:38 UTC
Created attachment 196537 [details] [review]
celtdec: fix error checking with libcelt 0.11

The return value of celt_decode has changed, newer versions
now return positive values on success.
Comment 3 Vincent Penquerc'h 2011-09-14 19:27:40 UTC
Created attachment 196538 [details] [review]
celtenc: do not use invalid buffer timestamps
Comment 4 Vincent Penquerc'h 2011-09-14 19:27:43 UTC
Created attachment 196539 [details] [review]
celtenc: cleanup header creation

Avoid an extra copy via a temporary fixed size stack buffer.
Use libcelt's header size to allocate a buffer of the correct
size in the first place (libcelt has an off by 4 there, so
account for this).
While there, make size unsigned, and granpos signed.
Comment 5 Vincent Penquerc'h 2011-09-14 19:27:46 UTC
Created attachment 196540 [details] [review]
celt: a bit more error checking on header parsing
Comment 6 Sebastian Dröge (slomo) 2011-09-19 07:39:38 UTC
commit fe0a2ec885226b2fa004b8d30514ce0f81ed3e28
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Sep 14 20:22:42 2011 +0100

    celt: a bit more error checking on header parsing
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659087

commit d8684fffa12a13d32efb8e74b8cd23519b3d76f6
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Sep 14 19:56:40 2011 +0100

    celtenc: cleanup header creation
    
    Avoid an extra copy via a temporary fixed size stack buffer.
    Use libcelt's header size to allocate a buffer of the correct
    size in the first place (libcelt has an off by 4 there, so
    account for this).
    While there, make size unsigned, and granpos signed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659087

commit 06764fcd3f6c738075cf52f8858a157cf8a350b9
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Sep 14 19:09:30 2011 +0100

    celtenc: do not use invalid buffer timestamps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659087

commit 37e688197d65b632606e32d2dd758b10a2767d0b
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Sep 14 17:26:05 2011 +0100

    celtdec: fix error checking with libcelt 0.11
    
    The return value of celt_decode has changed, newer versions
    now return positive values on success.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659087

commit 90b2484648e3370edce45d53b29a3a9af6d4cd90
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Wed Sep 14 17:07:50 2011 +0100

    celtenc: allow actually overriding frame size
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659087