Skip to content
Snippets Groups Projects
Commit 84a125c4 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtmp: Allocate the prev_pkt arrays dynamically


Normally, all channel ids are between 0 and 10, while they in
uncommon cases can have values up to 64k.

This avoids allocating two arrays for up to 64k entries (at a total
of over 6 MB in size) each when most of them aren't used at all.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 39185ec4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment