[FFmpeg-devel] [GSoC] Motion Interpolation

Moritz Barsnick barsnick at gmx.net
Fri Aug 19 15:53:13 EEST 2016


On Fri, Aug 19, 2016 at 11:19:22 +0000, Davinder Singh wrote:
> > Same here and many other places. "!=" is a valid operator. ;)
> 
> yes, that would be in case of == operator, not = operator, no?

D'uh, stupid me, I missed that. Sorry!

> will do. can you tell which is faster?

I *believe* switch/case is faster (IIRC):
- The code doesn't need to check a chain of if() cases to get to the
  later ones.
- The compiler can create a look-up table and jump through to the
  correct code block.

Moritz


More information about the ffmpeg-devel mailing list