[FFmpeg-devel] [PATCH 1/5] startcode: Use common macro and switch to pointer arithmetic

2019-06-09 Thread Andreas Rheinhardt
The reasons are cosmetics and preparation for future patches that will have even more cases and whose performance improves when switching to direct pointer arithmetic: Benchmarks have shown that using pointers directly instead of indexing to access the array to be about 5% faster (33665 vs. 31806 f

Re: [FFmpeg-devel] [PATCH 1/5] startcode: Use common macro

2019-06-03 Thread Andreas Rheinhardt
Michael Niedermayer: > On Sun, Jun 02, 2019 at 12:47:15AM +0200, Andreas Rheinhardt wrote: >> The reasons are cosmetics and preparation for future patches that will >> have even more cases. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/startcode.c | 37 +++--

Re: [FFmpeg-devel] [PATCH 1/5] startcode: Use common macro

2019-06-03 Thread Michael Niedermayer
On Sun, Jun 02, 2019 at 12:47:15AM +0200, Andreas Rheinhardt wrote: > The reasons are cosmetics and preparation for future patches that will > have even more cases. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/startcode.c | 37 +++-- > 1 file changed,

[FFmpeg-devel] [PATCH 1/5] startcode: Use common macro

2019-06-01 Thread Andreas Rheinhardt
The reasons are cosmetics and preparation for future patches that will have even more cases. Signed-off-by: Andreas Rheinhardt --- libavcodec/startcode.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/libavcodec/startcode.c b/libavcode