[FFmpeg-cvslog] avutil: remove obsolete FF_API_SAMPLES_UTILS_RETURN_ZERO cruft

James Almer git at videolan.org
Sun Oct 5 22:19:07 CEST 2014


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 14 21:17:03 2014 -0300| [3e5752098275e035f8b3d1ba475de80fcb62a3e5] | committer: James Almer

avutil: remove obsolete FF_API_SAMPLES_UTILS_RETURN_ZERO cruft

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavutil/samplefmt.c |    8 --------
 libavutil/version.h   |    3 ---
 2 files changed, 11 deletions(-)

diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index 3d415a1..c605b5e 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -165,11 +165,7 @@ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
     if (linesize)
         *linesize = line_size;
 
-#if FF_API_SAMPLES_UTILS_RETURN_ZERO
-    return 0;
-#else
     return buf_size;
-#endif
 }
 
 int av_samples_alloc(uint8_t **audio_data, int *linesize, int nb_channels,
@@ -194,11 +190,7 @@ int av_samples_alloc(uint8_t **audio_data, int *linesize, int nb_channels,
 
     av_samples_set_silence(audio_data, 0, nb_samples, nb_channels, sample_fmt);
 
-#if FF_API_SAMPLES_UTILS_RETURN_ZERO
-    return 0;
-#else
     return size;
-#endif
 }
 
 int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int nb_channels,
diff --git a/libavutil/version.h b/libavutil/version.h
index e38da7c..cf2cc96 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -101,9 +101,6 @@
 #ifndef FF_API_CPU_FLAG_MMX2
 #define FF_API_CPU_FLAG_MMX2            (LIBAVUTIL_VERSION_MAJOR < 55)
 #endif
-#ifndef FF_API_SAMPLES_UTILS_RETURN_ZERO
-#define FF_API_SAMPLES_UTILS_RETURN_ZERO (LIBAVUTIL_VERSION_MAJOR < 54)
-#endif
 #ifndef FF_API_LLS_PRIVATE
 #define FF_API_LLS_PRIVATE              (LIBAVUTIL_VERSION_MAJOR < 55)
 #endif



More information about the ffmpeg-cvslog mailing list