From 9388f69f679f0eabde23271944c8f2f35a94dee7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Nov 2014 10:43:15 +0100 Subject: 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. --- audio/audio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/audio.h') 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); -- cgit v1.2.3