[FFmpeg-soc] [soc]: r5371 - wmapro/wmaprodec.c

Sascha Sommer saschasommer at freenet.de
Mon Aug 31 20:28:31 CEST 2009


Hi,

On Montag, 31. August 2009, Ronald S. Bultje wrote:
> Hi,
>
> On Mon, Aug 31, 2009 at 2:07 PM, faust3<subversion at mplayerhq.hu> wrote:
> > + *@return decoded subframe length on success, < 0 in case of an error
>
> [..]
>
> > -        if (!(subframe_len = decode_subframe_length(s,
> > min_channel_len))) +        if ((subframe_len = decode_subframe_length(s,
> > min_channel_len)) <= 0)
>
> <= should be <.
>

subframe_len == 0 might be no error for decode_subframe_length
But it is an error for the calling function in this case.
(Although this should not happen with the current implementation)

Regards

Sascha


More information about the FFmpeg-soc mailing list