[FFmpeg-devel] FFmpeg source code is no longer C99 because of GNUism called case ranges

Roman Shaposhnik rvs
Mon Jun 25 04:13:21 CEST 2007


Guys,

I've always been very happy about the fact that ffmpeg's
source code has been more or less C99. Well it seems that
it is no longer the case and I just wanted to get your 
opinion on what should be done about it. The major GNUism 
that sneaked through is 'case ranges'. Things like:

   switch (i) {
      case 1 ... 100:
              break;
   }

We have them in:
     libavcodec/rv10.c:[564,570]
     libavformat/mp3.c:237
     libavformat/raw.c:378

and out of these 3 libavformat/mp3.c is the only one which is trivial to
fix.

My question, of course, is -- would it be acceptable to make code C99
compliant again at an expense of making it slightly less regular?

Thanks,
Roman.





More information about the ffmpeg-devel mailing list