diff options
author | wm4 <wm4@nowhere> | 2013-07-08 23:32:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-10 02:00:46 +0200 |
commit | 9200538b398a2f6d1be6bca107c58fd1a4070b01 (patch) | |
tree | 449f3db210602a3e9fda217033aee71fdb3f54f6 /audio/decode/dec_audio.c | |
parent | 32ad3138445dbf4ac16199ced2ad239a1a8c4e3f (diff) | |
download | mpv-9200538b398a2f6d1be6bca107c58fd1a4070b01.tar.bz2 mpv-9200538b398a2f6d1be6bca107c58fd1a4070b01.tar.xz |
audio: remove decoder input buffer
This was unused.
Diffstat (limited to 'audio/decode/dec_audio.c')
-rw-r--r-- | audio/decode/dec_audio.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c index 3275bae705..1bf217de80 100644 --- a/audio/decode/dec_audio.c +++ b/audio/decode/dec_audio.c @@ -55,15 +55,6 @@ static int init_audio_codec(sh_audio_t *sh_audio, const char *decoder) return 0; } - /* allocate audio in buffer: */ - if (sh_audio->audio_in_minsize > 0) { - sh_audio->a_in_buffer_size = sh_audio->audio_in_minsize; - mp_tmsg(MSGT_DECAUDIO, MSGL_V, - "dec_audio: Allocating %d bytes for input buffer.\n", - sh_audio->a_in_buffer_size); - sh_audio->a_in_buffer = av_mallocz(sh_audio->a_in_buffer_size); - } - const int base_size = 65536; // At least 64 KiB plus rounding up to next decodable unit size sh_audio->a_buffer_size = base_size + sh_audio->audio_out_minsize; @@ -194,7 +185,6 @@ void uninit_audio(sh_audio_t *sh_audio) talloc_free(sh_audio->gsh->decoder_desc); sh_audio->gsh->decoder_desc = NULL; av_freep(&sh_audio->a_buffer); - av_freep(&sh_audio->a_in_buffer); } @@ -370,7 +360,6 @@ void decode_audio_prepend_bytes(struct bstr *outbuf, int count, int byte) void resync_audio_stream(sh_audio_t *sh_audio) { - sh_audio->a_in_buffer_len = 0; // clear audio input buffer sh_audio->pts = MP_NOPTS_VALUE; if (!sh_audio->initialized) return; |