aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-21 14:43:28 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-21 14:43:28 +0100
commit2af5fb2f8c1135d1e979164ac87b0252b05cd5b2 (patch)
tree0fc8d15a0fffc6a57b839c50a384c97e6f5725d7
parent73029abddc14c8a376ff81968fe9b1e171e4e9eb (diff)
downloadffmpeg-2af5fb2f8c1135d1e979164ac87b0252b05cd5b2.tar.gz
avformat/flacenc: Use av_clip_uintp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/flacenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index 0eea94288f..4255363f95 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -95,7 +95,7 @@ static int flac_write_header(struct AVFormatContext *s)
padding = 8192;
/* The FLAC specification states that 24 bits are used to represent the
* size of a metadata block so we must clip this value to 2^24-1. */
- padding = av_clip(padding, 0, 16777215);
+ padding = av_clip_uintp2(padding, 24);
ret = ff_flac_write_header(s->pb, codec->extradata,
codec->extradata_size, 0);