[vlc-devel] [PATCH] codec: opus: remove packetizer callback
Thomas Guillem
thomas at gllm.fr
Thu Jun 7 09:58:42 CEST 2018
Can't apply, your patch has non-breaking spaces. Even after a sed, it doesn't apply.
On Thu, Jun 7, 2018, at 09:50, Thomas Guillem wrote:
> Indeed,
>
> On Thu, Jun 7, 2018, at 05:58, Zhao Zhili wrote:
> > 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
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list