]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/avcodec: Document signed/unsignedness of sample formats in relation to bits_p...
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Apr 2016 22:42:22 +0000 (00:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Apr 2016 15:58:05 +0000 (17:58 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/avcodec.h

index 9e6169f60863611cd0057da27ec034becdb1136c..784b1c1284a5ce10fbcc852d008222fc2aa3675b 100644 (file)
@@ -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