[FFmpeg-devel] [PATCH] RTP H.264 / AVC support

Luca Abeni lucabe72
Thu Jun 3 13:54:02 CEST 2010


On 06/03/2010 01:21 PM, Howard Chu wrote:
[...]
>> In particular, I am still not sure about the
>> need for the "NALP" data type.
>
> Passing a single pointer to struct is cheaper than repeatedly passing 4
> arguments when the code is called frequently / in loops / in nested
> function calls / etc...

Not sure if the difference is relevant (and I see that there are functions
in libavcodec that are called inside loops and get 4 or more arguments - see
ff_h264_decode_nal() for example). Moreover, if there are performance problems
we can inline the function.

Anyway, let's see what Michael says about reusing the NAL parsing code.


			Luca



More information about the ffmpeg-devel mailing list