diff options
author | wm4 <wm4@nowhere> | 2020-05-25 01:54:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-25 01:54:37 +0200 |
commit | afb6f1c7e988b4499abd0673339c53e4b08db43a (patch) | |
tree | 1024a5c8b79b0fae2cde31b26706e61895413f7a /audio/aframe.h | |
parent | 7c9543577a9aae1dabdeeb27c658844f9bb89ed0 (diff) | |
download | mpv-afb6f1c7e988b4499abd0673339c53e4b08db43a.tar.bz2 mpv-afb6f1c7e988b4499abd0673339c53e4b08db43a.tar.xz |
audio: add frame alloc function
Meh, why is this so roundabout?
Diffstat (limited to 'audio/aframe.h')
-rw-r--r-- | audio/aframe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/aframe.h b/audio/aframe.h index 21d4494f5f..be456a3dd1 100644 --- a/audio/aframe.h +++ b/audio/aframe.h @@ -20,6 +20,7 @@ struct AVFrame *mp_aframe_to_avframe_and_unref(struct mp_aframe *frame); struct AVFrame *mp_aframe_get_raw_avframe(struct mp_aframe *frame); bool mp_aframe_is_allocated(struct mp_aframe *frame); +bool mp_aframe_alloc_data(struct mp_aframe *frame, int samples); void mp_aframe_config_copy(struct mp_aframe *dst, struct mp_aframe *src); bool mp_aframe_config_equals(struct mp_aframe *a, struct mp_aframe *b); |