diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-07 19:45:46 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 11:27:25 +0200 |
commit | 89ca63cc9cc2d64a949adba5da36ef3dff580fd2 (patch) | |
tree | 0fdae8d25a25cb2b97741ed87aade27bdf798947 /libswscale | |
parent | 042117da75308f3d96df85ea4f97864d0142af3d (diff) | |
download | ffmpeg-89ca63cc9cc2d64a949adba5da36ef3dff580fd2.tar.gz |
avcodec/mpegpicture: Split ff_alloc_picture() into check and alloc part
ff_alloc_picture() currently does two things: It checks the
consistency of the linesize (which should not be necessary, but is)
and it allocates certain buffers. (It does not actually allocate
the picture buffers, so its name is misleading.)
This commit splits it into two separate functions. The rationale
for this is that for the encoders, every picture needs its linesizes
checked, but not every picture needs these extra buffers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswscale')
0 files changed, 0 insertions, 0 deletions