summaryrefslogtreecommitdiff
path: root/libavutil/version.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-11-25 20:23:32 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-11-25 23:23:24 +0100
commitb473c9937ebe9aafef9d2e07f080fb12ecc53ef4 (patch)
tree98ff7ca2cd36d57b928ddc0ff45d3801494b9e8b /libavutil/version.h
parent329b8f85b0489fad819c52866dcc66170eef5d32 (diff)
lavu/samplefmt: return the size of the allocated samples buffer at the next bump
Make the functions av_samples_fill_arrays, av_samples_alloc, and avcodec_fill_audio_frame return a buffer size rather than 0 in case of success. This will be enabled at the next libavutil major bump, in order to preserve backward compatibility. Returning the size allows to simplify the code, avoiding a few function calls.
Diffstat (limited to 'libavutil/version.h')
-rw-r--r--libavutil/version.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/version.h b/libavutil/version.h
index 8b9c813038..af60f71986 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -126,6 +126,9 @@
#ifndef FF_API_CPU_FLAG_MMX2
#define FF_API_CPU_FLAG_MMX2 (LIBAVUTIL_VERSION_MAJOR < 53)
#endif
+#ifndef FF_API_SAMPLES_UTILS_RETURN_ZERO
+#define FF_API_SAMPLES_UTILS_RETURN_ZERO (LIBAVUTIL_VERSION_MAJOR < 53)
+#endif
/**
* @}