summaryrefslogtreecommitdiffstats
path: root/audio/audio.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-29 22:43:00 +0100
committerwm4 <wm4@nowhere>2016-01-29 22:43:00 +0100
commit354c1fc06d5c2381dc59a39f02aa61a3c252b283 (patch)
tree1c7c4389e3fd5532ff01264de15f9f39bc8dddb6 /audio/audio.h
parent946ee29a7ded5edf99942b07227cd81eb1bcc274 (diff)
downloadmpv-354c1fc06d5c2381dc59a39f02aa61a3c252b283.tar.bz2
mpv-354c1fc06d5c2381dc59a39f02aa61a3c252b283.tar.xz
audio: move mp_audio->AVFrame conversion to a function
This also makes it refcounted, i.e. the new AVFrame will reference the mp_audio buffers, instead of potentially forcing the consumer of the AVFrame to copy the data. All the extra code is for handling the >8 channels case, which requires very messy dealing with the extended_ fields (not our fault).
Diffstat (limited to 'audio/audio.h')
-rw-r--r--audio/audio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/audio.h b/audio/audio.h
index c74d0f778c..a4cce55af7 100644
--- a/audio/audio.h
+++ b/audio/audio.h
@@ -78,6 +78,7 @@ int mp_audio_make_writeable(struct mp_audio *data);
struct AVFrame;
struct mp_audio *mp_audio_from_avframe(struct AVFrame *avframe);
+struct AVFrame *mp_audio_to_avframe_and_unref(struct mp_audio *frame);
struct mp_audio_pool;
struct mp_audio_pool *mp_audio_pool_create(void *ta_parent);