On Mon, May 07, 2012 at 10:25:53PM -0600, Nathan Caldwell wrote: > From: Carl Eugen Hoyos <[email protected]> > > Fixes ticket #1214. > --- > > I am not sure this is correct, I do not have any unaligned RGB samples > to test with. > > libavcodec/lagarith.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c > index b27e755..41df353 100644 > --- a/libavcodec/lagarith.c > +++ b/libavcodec/lagarith.c > @@ -496,7 +496,8 @@ static int lag_decode_frame(AVCodecContext *avctx, > offset_ry += 4; > offs[3] = AV_RL32(buf + 9); > case FRAME_ARITH_RGB24: > - if (frametype == FRAME_ARITH_RGB24) > + case FRAME_U_RGB24: > + if (frametype == FRAME_ARITH_RGB24 || frametype == FRAME_U_RGB24) > avctx->pix_fmt = PIX_FMT_RGB24; > > if (avctx->get_buffer(avctx, p) < 0) { > --
At least we have reference code at it seems to do the same thing, so patch looks OK. P.S. Please drop ticket number. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
