Hi,

On Sat, Apr 7, 2012 at 11:55 AM, Justin Ruggles
<[email protected]> wrote:
> On 04/07/2012 02:16 PM, Ronald S. Bultje wrote:
>> On Thu, Apr 5, 2012 at 4:13 PM, Justin Ruggles <[email protected]> 
>> wrote:
>>> ---
>>>  libavutil/samplefmt.c |    9 ++++++---
>>>  libavutil/samplefmt.h |    4 ++--
>>>  2 files changed, 8 insertions(+), 5 deletions(-)
>>
>> Why? Are there particular cases where passing NULL saves code or cycles?
>
>
> Would save adding an unneeded variable to pass to the function if the
> user doesn't need to know that information.
> for example:
>
> av_samples_fill_arrays(data, NULL, ...);
> vs.
> int linesize;
> av_samples_fill_arrays(data, &linesize, ...);
> // do nothing with linesize

Hm, I guess, OK then.

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

Reply via email to