[vlc-devel] [PATCH] codec: opus: remove packetizer callback
Zhao Zhili
quinkblack at foxmail.com
Thu Jun 7 05:58:00 CEST 2018
It doesn't has the capability of a packetizer.
---
modules/codec/opus.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index d1a0fc9..d98d968 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.
*****************************************************************************/
--
2.9.5
More information about the vlc-devel
mailing list