On Fri, 20 Jan 2012, Luca Barbato wrote:
On 20/01/12 11:00, Martin Storsjö wrote:
Originally, sizeof(struct MOVIentry) was 48, after the reordering,
it is 40 in my build configuration.
When writing really long mov/mp4 files, this can make a difference
- this saves a bit over 2 MB of memory per hour of video (down to
10.3 MB per hour from 12.3 MB per hour initially) for a video with
75 packets per second - 25 fps + 50 audio packets (which is the
case for AMR audio).
---
Ok, I guess. Is there around something in dwarves to point structures
that could require less memory once reordered.
Could you rephrase the second sentence - I don't really understand what it
says. Do you mean that we should look for other cases of the same issue? I
guess it doesn't really matter quite as much for most structs except those
that are allocated in really long arrays like this one.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel