diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-01 21:02:13 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-08-07 09:50:29 +0200 |
commit | c48cc9c6e90bc8ca0304bd57cb77f7a689f83391 (patch) | |
tree | 18436136e82fc12eced8ace1a3d46ecf2589eda0 /libavformat/oggparsecelt.c | |
parent | dcc1847b18f01ce168266b9067861a8f5b1709b7 (diff) | |
download | ffmpeg-c48cc9c6e90bc8ca0304bd57cb77f7a689f83391.tar.gz |
avcodec/decode: Extend ff_hwaccel_frame_priv_alloc()'s task
All usages of ff_hwaccel_frame_priv_alloc() have the same pattern:
Check for whether a hwaccel is in use; check whether it needs
private frame-specific data; allocate the AVBuffer and set
it.
This commit modifies ff_hwaccel_frame_priv_alloc() to perform
this task on its own.
(It also seems that the H.264 decoder did not perform proper
cleanup in case the buffer could not be allocated. This has been
changed.)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/oggparsecelt.c')
0 files changed, 0 insertions, 0 deletions