[FFmpeg-devel] [PATCH] lavu, lavc, lswr: do not hardcode AV_SAMPLE_FMT_NB value when setting sample format max value

Stefano Sabatini stefasab at gmail.com
Thu Dec 26 11:52:18 CET 2013


On date Sunday 2013-12-22 15:43:14 +0100, Michael Niedermayer encoded:
> On Mon, Dec 16, 2013 at 04:50:55PM +0100, Stefano Sabatini wrote:
> > The constant may change in libavutil but the library may be compiled
> > against an older version, thus rejecting a value which is otherwise
> > supported by the new libavutil.
> > 
> > INT_MAX is used here to denote the max allowed value for a sample format.
> > 
> > The opt-test code is changed to provide a valid reference example.
> 
> maybe ok
> 
> note though that there is no gurantee that new sample formats would
> neccessarily be supported by the code that supports all current ones
> (an actual example of this would probably be the addition of planar
>  at a time when all code assumed packed)

Applied.
-- 
FFmpeg = Faithless and Frightening MultiPurpose Enigmatic Game


More information about the ffmpeg-devel mailing list