[FFmpeg-devel] [PATCH] Lego Mindstorms RSO de/muxer (copied from au.c)

Diego Biurrun diego
Fri Jul 16 17:02:33 CEST 2010


On Thu, Jul 15, 2010 at 04:44:49PM +0200, Rafa?l Carr? wrote:
> 
> --- /dev/null
> +++ b/libavformat/rsodec.c
> @@ -0,0 +1,119 @@
> +    /* now we are ready: build format streams */
> +    st = av_new_stream(s, 0);
> +    if (!st)
> +        return -1;
> +    st->duration = size << 3 / bpp;
> +    st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
> +    st->codec->codec_tag = id;
> +    st->codec->codec_id = codec;
> +    st->codec->channels = 1;
> +    st->codec->sample_rate = rate;

nit: This would be more readable with the = aligned.

Diego



More information about the ffmpeg-devel mailing list