[Ffmpeg-devel] [PATCH] accept only existing bitrates in amr.c

Måns Rullgård mans
Mon Mar 5 20:06:03 CET 2007


Michael Niedermayer <michaelni at gmx.at> writes:

> i prefer using the return value for both enum and -1 error yes, enum==int
> anyway
> or if you recently have been brainwashed by some CS teachers then just add
> a enum entry for error and give it the value -1

An enum isn't required to be int.  The compiler may choose any integer
type capable of representing the full range of the enum values.  The
enumeration constants have type int, but that's another matter.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list