diff options
author | Martin Storsjö <martin@martin.st> | 2013-10-11 22:16:04 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-10-14 14:27:35 +0300 |
commit | 84a125c4c28f3e3e215d2e6c32f7f0ec43bbc04c (patch) | |
tree | ad5331b186777912b07d2eba532488019466afa3 /libavformat/assdec.c | |
parent | 39185ec4faa9ef33954dbf2394444e045b632673 (diff) | |
download | ffmpeg-84a125c4c28f3e3e215d2e6c32f7f0ec43bbc04c.tar.gz |
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: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/assdec.c')
0 files changed, 0 insertions, 0 deletions