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 641827 - rtptheorapay: doesn't handle 0-size packets
rtptheorapay: doesn't handle 0-size packets
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.29
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-08 11:22 UTC by Tim-Philipp Müller
Modified: 2011-03-08 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim-Philipp Müller 2011-02-08 11:22:45 UTC
gst-launch -v v4l2src ! 'video/x-raw-yuv, width=320,height=240' ! theoraenc ! identity ! rtptheorapay config-interval=1 ! fakesink

...
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = "chain   ******* (identity0:sink)i (28 bytes, timestamp: 0:00:10.271465869, duration: 0:00:00.033333333, offset: 10233333333, offset_end:  17569, flags: 256) 0x184c400"
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = "chain   ******* (identity0:sink)i (0 bytes, timestamp: 0:00:10.303454859, duration: 0:00:00.033333334, offset: 10266666666, offset_end:  17570, flags: 256) 0x15dde00"
...
WARNING: from element /GstPipeline:pipeline0/GstRtpTheoraPay:rtptheorapay0: Invalid packet size (1 < 0 <= 0xffff)
Additional debug info:
gstrtptheorapay.c(746): gst_rtp_theora_pay_handle_buffer (): /GstPipeline:pipeline0/GstRtpTheoraPay:rtptheorapay0
...
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = "chain   ******* (identity0:sink)i (75 bytes, timestamp: 0:00:10.339410561, duration: 0:00:00.033333333, offset: 10300000000, offset_end:  17571, flags: 256) 0x15dde00"
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = "chain   ******* (identity0:sink)i (271 bytes, timestamp: 0:00:10.371441528, duration: 0:00:00.033333333, offset: 10333333333, offset_end:  17572, flags: 256) 0x184c400"


IIRC 0-size packets have a meaning (repeat frame?).
Comment 1 Wim Taymans 2011-02-14 15:49:06 UTC
commit 4279aa6a686524f3798615fffe8259ef864a0b59
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Feb 14 16:46:46 2011 +0100

    theorapay: handle 0 sized packets
    
    Handle 0 sized packets (repeat frame) in the payloader and depayloader.
    
    Fixes #641827