[FFmpeg-devel] [PATCH] Add the function libavcodec/utils.c:avcodec_type_string

Balatoni Denes dbalatoni
Fri Nov 9 22:57:57 CET 2007


Hi!

Friday 09 November 2007 04:17-kor Michael Niedermayer ezt ?rta:
> > char *avcodec_type_string (char *buf, int buf_size, enum CodecType
> > codec_type) {
> >     if (codec_type<0 || codec_type>CODEC_TYPE_NB)
>
> this can be simplified to 1 check with (unsigned)

Not a major point, but it seems gcc actually simplifies it automatically (at 
least with O3). Even gcc 2.97 does the simplification for me.

> [...]

bye
Denes




More information about the ffmpeg-devel mailing list