diff options
author | wm4 <wm4@nowhere> | 2014-11-10 10:43:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-10 10:43:15 +0100 |
commit | 9388f69f679f0eabde23271944c8f2f35a94dee7 (patch) | |
tree | 091dac9cfba8c917b81943b20b9105ffa48dd3d7 /audio/audio.h | |
parent | 5f175b0bdc046b35303466ef2b3f3cd7ee7ca0be (diff) | |
download | mpv-9388f69f679f0eabde23271944c8f2f35a94dee7.tar.bz2 mpv-9388f69f679f0eabde23271944c8f2f35a94dee7.tar.xz |
audio: use AVBufferRef to allocate audio frames
A first step towards refcounted audio frames.
Amazingly, the API just does what we want, and the code becomes
simpler. We will need to NIH allocation from a pool, though.
Diffstat (limited to 'audio/audio.h')
-rw-r--r-- | audio/audio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.h b/audio/audio.h index 2fe4da92b1..aa03f2450c 100644 --- a/audio/audio.h +++ b/audio/audio.h @@ -38,7 +38,7 @@ struct mp_audio { int bps; // size of sub-samples (af_fmt2bps(format)) // private - int allocated[MP_NUM_CHANNELS]; // use mp_audio_get_allocated_size() + struct AVBufferRef *allocated[MP_NUM_CHANNELS]; }; void mp_audio_set_format(struct mp_audio *mpa, int format); |