[FFmpeg-devel] [PATCH 8/9] lavf/oggdec: make stream replacement less convoluted.

Clément Bœsch ubitux at gmail.com
Sat Sep 15 02:12:53 CEST 2012


On Sat, Sep 15, 2012 at 01:20:47AM +0200, Clément Bœsch wrote:
> Also re-use the allocated buffer instead of re-allocating a new one.
> ---
>  libavformat/oggdec.c | 58 ++++++++++++++++++++++++++++++++++++----------------
>  1 file changed, 40 insertions(+), 18 deletions(-)
> 
> diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
> index aed49a5..5b3b789 100644
> --- a/libavformat/oggdec.c
> +++ b/libavformat/oggdec.c
> @@ -161,9 +161,44 @@ static const struct ogg_codec *ogg_find_codec(uint8_t *buf, int size)
>      return NULL;
>  }
>  
> -static int ogg_new_stream(AVFormatContext *s, uint32_t serial, int new_avstream)
> +/**
> + * Reset the current stream with a new one. This is a typical webradio

s/Reset/Replace/ locally

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120915/174e6c77/attachment.asc>


More information about the ffmpeg-devel mailing list