Justin Ruggles <justin.rugg...@gmail.com> writes:

> On 12/07/2012 02:57 PM, Måns Rullgård wrote:
>> Justin Ruggles <justin.rugg...@gmail.com> writes:
>> 
>>> On 12/05/2012 12:52 PM, Kostya Shishkov wrote:
>>>> On Wed, Nov 28, 2012 at 03:00:10PM -0500, Justin Ruggles wrote:
>>>>> +static inline float lfg_get_flt(AVLFG *lfg)
>>>>> +{
>>>>> +    return av_lfg_get(lfg) / (float)UINT32_MAX;
>>>>> +}
>>>>
>>>> Make it generic? I think some codecs use the similar code too.
>>>
>>> I couldn't find any. But I guess it could still be useful to have available.
>> 
>> Wouldn't you want this to produce negative numbers as well?
>
> Not for the purposes of this patch.

There's something similar elsewhere that does use negative values.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to