diff options
author | wm4 <wm4@nowhere> | 2017-04-14 19:19:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-14 19:19:44 +0200 |
commit | 3709ce6718bed8a113d141cdf5e8198f22f3c5f7 (patch) | |
tree | ca5e9bd66f9f559365f630d6124592e48e7795e4 /demux/packet.h | |
parent | 3e8510d515e9446f7c1f2b4372e501a713bb2502 (diff) | |
download | mpv-3709ce6718bed8a113d141cdf5e8198f22f3c5f7.tar.bz2 mpv-3709ce6718bed8a113d141cdf5e8198f22f3c5f7.tar.xz |
demux: estimate total packet size, deprecate packet number limits
It's all explained in the DOCS changes. Although this option was always
kind of obscure and pointless. Until it is removed, the only reason for
setting it would be to raise the static default limit, so change its
default to INT_MAX so that it does nothing by default.
Diffstat (limited to 'demux/packet.h')
-rw-r--r-- | demux/packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/packet.h b/demux/packet.h index d669d02376..03204c8de2 100644 --- a/demux/packet.h +++ b/demux/packet.h @@ -51,6 +51,7 @@ struct demux_packet *new_demux_packet_from(void *data, size_t len); void demux_packet_shorten(struct demux_packet *dp, size_t len); void free_demux_packet(struct demux_packet *dp); struct demux_packet *demux_copy_packet(struct demux_packet *dp); +size_t demux_packet_estimate_total_size(struct demux_packet *dp); void demux_packet_copy_attribs(struct demux_packet *dst, struct demux_packet *src); |