On Mon, Apr 30, 2012 at 08:56:35AM -0700, Mashiat Sarker Shakkhar wrote:
> This fixes decoding of frames which span more than two packets. Tested with
> 
> --- a/libavcodec/wmalosslessdec.c
> +++ b/libavcodec/wmalosslessdec.c
> @@ -1209,8 +1209,8 @@ static int decode_packet(AVCodecContext *avctx, void 
> *data, int *got_frame_ptr,
>  
>              /* decode the cross packet frame if it is valid */
> -            if (!s->packet_loss)
> -                decode_frame(s);
> +            if (num_bits_prev_frame < remaining_packet_bits && 
> !s->packet_loss)
> +                    decode_frame(s);

Indentation is off.  It seems you coalesced the two if-statements without
fixing the indentation of the statement following the second if.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to