[FFmpeg-devel] Patch for chained OGG files

Diego Biurrun diego
Thu Apr 1 01:22:34 CEST 2010


On Wed, Mar 31, 2010 at 01:48:51PM -0400, Cyril Zorin wrote:
> 
> Attached is a patch that lets ffmpeg handle chained OGG files, often used in
> internet radio streams. Let me know if there's anything to change.

The coding style, you use 2 spaces indentation in a 4 spaces
indentation file.

> --- a/ffmpeg/libavformat/oggdec.c
> +++ b/ffmpeg/libavformat/oggdec.c
> @@ -233,6 +235,13 @@ ogg_read_page (AVFormatContext * s, int *str)
>      flags = url_fgetc (bc);
> +
> +    if ((flags & OGG_FLAG_BOS) && ogg->nstreams)
> +    {

Keep the { on the same line after an if.

Diego



More information about the ffmpeg-devel mailing list