codec_data resizing.
Sebastian Dröge
sebastian at centricular.com
Sun Jan 5 00:58:07 PST 2014
On Fr, 2014-01-03 at 21:48 -0800, RajuB wrote:
> I have a codec_data received on sink pad. And I want to remove certain data
> codec_data and set it to src pad. How cleanly it can be done.?? Can anybody
> help me out here. Thanks in advance.
You simply create new caps with the new codec_data. The new, smaller
codec data could be created by creating a new GstBuffer and copying
everything you want in there, or potentially by just creating a
subbuffer of the other codec_data buffer (if you only want to drop data
at the beginning or end).
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140105/18fd0c81/attachment.pgp>
More information about the gstreamer-devel
mailing list