summaryrefslogtreecommitdiffstats
path: root/audio/audio.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-10 18:45:24 +0100
committerwm4 <wm4@nowhere>2014-11-10 22:02:04 +0100
commit0b26d8c66639c1e12035448eb2feadcf067dc056 (patch)
treeffdec8d6fd854810385530a87a5afe82b90f2e20 /audio/audio.h
parent5d46e44160fe9ab6a922b594d10f2e4e70242ab7 (diff)
downloadmpv-0b26d8c66639c1e12035448eb2feadcf067dc056.tar.bz2
mpv-0b26d8c66639c1e12035448eb2feadcf067dc056.tar.xz
audio: add function to convert AVFrame to mp_audio references
This is somewhat duplicated from ad_lavc.c and af_lavfi.c, but will eventually be used by both.
Diffstat (limited to 'audio/audio.h')
-rw-r--r--audio/audio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/audio.h b/audio/audio.h
index c2699d8906..63c37ac03c 100644
--- a/audio/audio.h
+++ b/audio/audio.h
@@ -68,6 +68,9 @@ void mp_audio_copy(struct mp_audio *dst, int dst_offset,
struct mp_audio *src, int src_offset, int length);
void mp_audio_skip_samples(struct mp_audio *data, int samples);
+struct AVFrame;
+struct mp_audio *mp_audio_from_avframe(struct AVFrame *avframe);
+
struct mp_audio_pool *mp_audio_pool_create(void *ta_parent);
struct mp_audio *mp_audio_pool_get(struct mp_audio_pool *pool,
const struct mp_audio *fmt, int samples);