On Wed, Nov 30, 2011 at 12:23:52PM -0500, Thad Ward wrote:
> ---
> libavcodec/lagarith.c | 36 +++++++++++++++++++++++++-----------
> 1 files changed, 25 insertions(+), 11 deletions(-)
>
> diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
> index 1aa9ec3..a8776e0 100644
> --- a/libavcodec/lagarith.c
> +++ b/libavcodec/lagarith.c
> @@ -514,13 +522,19 @@ static int lag_decode_frame(AVCodecContext *avctx,
> r = srcs[0][i];
> g = srcs[1][i];
> b = srcs[2][i];
> - a = srcs[3][i];
> r += g;
> b += g;
> - AV_WN32(dst + i * 4, MKBETAG(a, r, g, b));
> + if (FRAME_ARITH_RGBA == frametype) {
*ahem*
> + a = srcs[3][i];
> + AV_WN32(dst + i * 4, MKBETAG(a, r, g, b));
> + } else {
> + dst[i * 3 + 0] = r;
> + dst[i * 3 + 1] = g;
> + dst[i * 3 + 2] = b;
> + }
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel