[FFmpeg-devel] [PATCH] avformat/udp: UDP-Lite (RFC 3828) support added

Michael Niedermayer michaelni at gmx.at
Wed Nov 5 02:54:10 CET 2014


On Tue, Nov 04, 2014 at 11:48:05PM +0100, Thomas Volkert wrote:
> From: Thomas Volkert <thomas at homer-conferencing.com>
> 
> ---
[...]
> @@ -893,3 +938,15 @@ URLProtocol ff_udp_protocol = {
>      .priv_data_class     = &udp_context_class,
>      .flags               = URL_PROTOCOL_FLAG_NETWORK,
>  };
> +
> +URLProtocol ff_udplite_protocol = {
> +    .name                = "udplite",
> +    .url_open            = udplite_open,
> +    .url_read            = udp_read,
> +    .url_write           = udp_write,
> +    .url_close           = udp_close,
> +    .url_get_file_handle = udp_get_file_handle,
> +    .priv_data_size      = sizeof(UDPContext),
> +    .priv_data_class     = &udp_context_class,

classes cant be reused, the code will infinite loop otherwise
make fate is an example of it

also if this fixed ticket 1501, please mention it in the commit
message

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141105/db65125b/attachment.asc>


More information about the ffmpeg-devel mailing list