vlc | branch: master | Zhao Zhili <[email protected]> | Thu Jun 7 16:52:27 2018 +0800| [c774873399fb8ac2f95de4a983198c69dffba737] | committer: Thomas Guillem
codec: opus: remove packetizer callback It doesn't has the capability of a packetizer. Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c774873399fb8ac2f95de4a983198c69dffba737 --- modules/codec/opus.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/codec/opus.c b/modules/codec/opus.c index d1a0fc9250..d98d96830b 100644 --- a/modules/codec/opus.c +++ b/modules/codec/opus.c @@ -154,7 +154,6 @@ static const uint32_t pi_3channels_in[] = * Local prototypes ****************************************************************************/ -static block_t *Packetize ( decoder_t *, block_t ** ); static int DecodeAudio ( decoder_t *, block_t * ); static void Flush( decoder_t * ); static int ProcessHeaders( decoder_t * ); @@ -185,7 +184,6 @@ static int OpenDecoder( vlc_object_t *p_this ) p_dec->fmt_out.i_codec = VLC_CODEC_FL32; p_dec->pf_decode = DecodeAudio; - p_dec->pf_packetize = Packetize; p_dec->pf_flush = Flush; p_sys->p_st = NULL; @@ -237,16 +235,6 @@ static int DecodeAudio( decoder_t *p_dec, block_t *p_block ) return VLCDEC_SUCCESS; } -static block_t *Packetize( decoder_t *p_dec, block_t **pp_block ) -{ - if( pp_block == NULL ) /* No Drain */ - return NULL; - block_t *p_block = *pp_block; *pp_block = NULL; - if( p_block == NULL ) - return NULL; - return DecodeBlock( p_dec, p_block ); -} - /***************************************************************************** * ProcessHeaders: process Opus headers. *****************************************************************************/ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
