[MPlayer-dev-eng] [PATCH] lavf + libtheora support

Diego Biurrun diego at biurrun.de
Thu Mar 18 13:36:28 CET 2010


On Thu, Mar 18, 2010 at 12:11:14AM +0100, Aurelien Jacobs wrote:
> 
> Attached patch allows vd_theora to decode stream comming from lavf,
> which actually contains headers in extradata instead of the first 3
> packets.

Excellent, commit if it works :)

> --- libmpcodecs/vd_theora.c	(revision 30904)
> +++ libmpcodecs/vd_theora.c	(working copy)
> @@ -90,8 +94,21 @@
> +            op.bytes = AV_RB16(extradata);
> +            op.packet = extradata + 2;
> +            op.b_o_s = 1;

> +            extradata += op.bytes + 2;
> +            extradata_size -= op.bytes + 2;

extra good karma for vertical alignment.

Diego



More information about the MPlayer-dev-eng mailing list