Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-15 01:42:22 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-15 18:58:05 +0300
commitf07923253a1b64911bee623d789c2ee74b14493c (patch)
tree2a0986c2b92d2d0871aba08c51d73907101ad1ec
parentbcf936eaeae8db9cb5dbd9a9d4f670acd608ec86 (diff)
avcodec/avcodec: Document signed/unsignedness of sample formats in relation to bits_per_raw_sample
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/avcodec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9e6169f608..784b1c1284 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3850,8 +3850,8 @@ typedef struct AVCodecParameters {
* sample format has more bits, the least significant bits are additional
* padding bits, which are always 0. Use right shifts to reduce the sample
* to its actual size. For example, audio formats with 24 bit samples will
- * have bits_per_raw_sample set to 24, and format set to AV_SAMPLEFMT_S32.
- * To get the original sample use "(uint32_t)sample >> 8"."
+ * have bits_per_raw_sample set to 24, and format set to AV_SAMPLE_FMT_S32.
+ * To get the original sample use "(int32_t)sample >> 8"."
*
* For ADPCM this might be 12 or 16 or similar
* Can be 0