Mercurial > mplayer.hg
view libmpcodecs/ae_toolame.h @ 26037:bee99864f397
New member in demuxer_t: reference_clock.
If it's != MP_NOPTS_VALUE ds_fill_buffer() will keep
on demuxing until the pts of the next_pts is <= reference_clock.
It guarantees the compliance with the buffering model indicated
by the transmitter of the multiplex and a long-time stability
of playback (at least for me).
In any case up to a maximum of 64 packets are accumulated to prevent
memory hogging and leaks.
author | nicodvb |
---|---|
date | Sat, 23 Feb 2008 10:31:44 +0000 |
parents | 4129c8cfa742 |
children | bbb6ebec87a0 |
line wrap: on
line source
#ifndef MPLAYER_AE_TOOLAME_H #define MPLAYER_AE_TOOLAME_H #include "ae.h" #include <toolame.h> typedef struct { toolame_options *toolame_ctx; int channels, srate, bitrate; int vbr; int16_t left_pcm[1152], right_pcm[1152]; } mpae_toolame_ctx; int mpae_init_toolame(audio_encoder_t *encoder); #endif /* MPLAYER_AE_TOOLAME_H */