diff options
author | wm4 <wm4@nowhere> | 2019-07-06 23:45:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 3cea180cc05cbf5f270e171f710f11288a1d2dfe (patch) | |
tree | 68df8361b50db89fb55fe618a58ab41633196591 /video/out | |
parent | a8be8fe4f48d718b50274146519f1e2080fa80cd (diff) | |
download | mpv-3cea180cc05cbf5f270e171f710f11288a1d2dfe.tar.bz2 mpv-3cea180cc05cbf5f270e171f710f11288a1d2dfe.tar.xz |
packet: free some unnecessary memory in disk cache case
If the disk cache is used, the AVPacket is not used anymore and is
completely deallocated when the packet is written to disk. As a minor
bug, the AVPacket allocation itself was not freed (although it wasn't a
memory leak, since talloc still automatically freed it when the entire
demux_packet was freed). For very large caches, this could easily add up
to over hundred MB, so actually free the unneeded allocation.
Diffstat (limited to 'video/out')
0 files changed, 0 insertions, 0 deletions