diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-06 01:14:50 +0200 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-06-07 13:06:41 -0400 |
commit | a6703faa157294efb75619f55c06d7ed5a0aa2bf (patch) | |
tree | ec47ec652746522f8c1454e75e0fac315026a54a /libavutil/avutil.h | |
parent | 2f37321abcbf9be5f58647b17155c0e257949c0d (diff) | |
download | ffmpeg-a6703faa157294efb75619f55c06d7ed5a0aa2bf.tar.gz |
samplefmt: add av_get_bytes_per_sample()
Deprecate av_get_bits_per_sample_fmt(), which was a misnamed function.
For the moment we don't have sample formats with a non-integer number
of bytes, in that case we may need to create a new
av_get_bits_per_sample() function. In the meanwhile we prefer to adopt
this variant, since avoids divisions by 8 all over the place.
Diffstat (limited to 'libavutil/avutil.h')
-rw-r--r-- | libavutil/avutil.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 5085a6dd0b..8536790109 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -40,7 +40,7 @@ #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 3 +#define LIBAVUTIL_VERSION_MINOR 4 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ @@ -57,6 +57,9 @@ * Those FF_API_* defines are not part of public API. * They may change, break or disappear at any time. */ +#ifndef FF_API_GET_BITS_PER_SAMPLE_FMT +#define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52) +#endif /** * Return the LIBAVUTIL_VERSION_INT constant. |