mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 01:40:04 +01:00
decode: add a per-frame private data for hwaccel use
This will be useful in the CUVID hwaccel. It should also eventually
replace current decoder-specific mechanisms used by various other
hwaccels.
Merges Libav commit 704311b294.
This commit is contained in:
committed by
Timo Rothenpieler
parent
7fa64514c8
commit
81c021c6a2
@@ -1581,6 +1581,9 @@ static void decode_data_free(void *opaque, uint8_t *data)
|
||||
if (fdd->post_process_opaque_free)
|
||||
fdd->post_process_opaque_free(fdd->post_process_opaque);
|
||||
|
||||
if (fdd->hwaccel_priv_free)
|
||||
fdd->hwaccel_priv_free(fdd->hwaccel_priv);
|
||||
|
||||
av_freep(&fdd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user