summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/dec_audio.h
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-01 06:52:19 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-01 06:52:19 +0000
commit1844e1dd0c15c18ea4781475fd1f1d62c0098ebc (patch)
treec2e851fccc75aa0bac60aefba6d9bb36f727a95b /libmpcodecs/dec_audio.h
parenta6d6f182167dbb2fe16ef12faf36a6668eaaa9af (diff)
downloadmpv-1844e1dd0c15c18ea4781475fd1f1d62c0098ebc.tar.bz2
mpv-1844e1dd0c15c18ea4781475fd1f1d62c0098ebc.tar.xz
Change decode_audio() interface
Rewrite decode_audio to better deal with filters that handle input in large blocks. It now always places output in sh_audio->a_out_buffer (which was always given as a parameter before) and reallocates the buffer if needed. After the changes filters can return arbitrarily large blocks of data without some of it being lost. The new version also allows simplifying some code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24920 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/dec_audio.h')
-rw-r--r--libmpcodecs/dec_audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/dec_audio.h b/libmpcodecs/dec_audio.h
index d372a65fc8..e5d71b8792 100644
--- a/libmpcodecs/dec_audio.h
+++ b/libmpcodecs/dec_audio.h
@@ -2,7 +2,7 @@
// dec_audio.c:
extern void afm_help(void);
extern int init_best_audio_codec(sh_audio_t *sh_audio,char** audio_codec_list,char** audio_fm_list);
-extern int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int maxlen);
+extern int decode_audio(sh_audio_t *sh_audio, int minlen);
extern void resync_audio_stream(sh_audio_t *sh_audio);
extern void skip_audio_frame(sh_audio_t *sh_audio);
extern void uninit_audio(sh_audio_t *sh_audio);