aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/smc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-08 21:03:27 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:08:19 +0200
commit788892d647636b314fa23df8eaaa3f016809ce0a (patch)
tree2cc6e0e12efe820f83cd1f393061b80395173f0a /libavcodec/smc.c
parenta95591dbfde3a9347cdfe6537243957e65d2d8ea (diff)
downloadffmpeg-788892d647636b314fa23df8eaaa3f016809ce0a.tar.gz
avcodec/mpegvideo, mpegpicture: Add buffer pool
This avoids constant allocations+frees and will also allow to simply switch to the RefStruct API, thereby avoiding the overhead of the AVBuffer API. It also simplifies the code, because it removes the "needs_realloc" field: It was added in 435c0b87d28b48dc2e0360adc404a0e2d66d16a0, before the introduction of the AVBuffer API: given that these buffers may be used by different threads, they were not freed immediately and instead were marked as being freed later by setting needs_realloc. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/smc.c')
0 files changed, 0 insertions, 0 deletions