[FFmpeg-cvslog] lavfi: change AVFilterBufferRefAudioProps.sample_rate from uint32_t to int

Anton Khirnov git at videolan.org
Thu May 10 23:33:12 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May  6 10:40:11 2012 +0200| [a6bdfc2a92a46aa7ee2d95a40f43b848ef94ec13] | committer: Anton Khirnov

lavfi: change AVFilterBufferRefAudioProps.sample_rate from uint32_t to int

There's no reason for it to be explicitly 32 bits. It's declared as a
plain int in all other places in Libav.

This breaks audio filtering API and ABI in theory, but since it's
unusable right now this shouldn't be a problem.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6bdfc2a92a46aa7ee2d95a40f43b848ef94ec13
---

 libavfilter/avfilter.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index cf95b4b..357ce34 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -109,7 +109,7 @@ typedef struct AVFilterBuffer {
 typedef struct AVFilterBufferRefAudioProps {
     uint64_t channel_layout;    ///< channel layout of audio buffer
     int nb_samples;             ///< number of audio samples
-    uint32_t sample_rate;       ///< audio buffer sample rate
+    int sample_rate;            ///< audio buffer sample rate
     int planar;                 ///< audio buffer - planar or packed
 } AVFilterBufferRefAudioProps;
 



More information about the ffmpeg-cvslog mailing list