After developing an RTP streaming server based on the old avserver, I am
now trying to get rid of all the internal methods that it is using, like:

int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size)

But there seems to be no corresponding avio_open_dyn_packet_buf() method
that would allow setting the max_packet_size.

The closest is

int avio_open_dyn_buf(AVIOContext **s)
{
    return url_open_dyn_buf_internal(s, 0);
}

but that one implies max_packet_size = 0


For instance, the header packet is currently generated with this code:

AVFormatContext *ctx;
int max_packet_size = whatever;
uint8_t *data = NULL;

ffio_open_dyn_packet_buf(&(ctx->pb), max_packet_size); // <----------
how to replace?
avformat_write_header(ctx, NULL);
avio_close_dyn_buf(ctx->pb, &data);


How can I get this done without calling ffio_open_dyn_packet_buf() ?

Thanks!
Bernd





_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to