[FFmpeg-cvslog] avformat/flacenc: use av_clip() instead of av_clip_c()

Clément Bœsch git at videolan.org
Tue Sep 16 16:57:38 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Sep 16 10:07:56 2014 +0200| [de0e49c2450f3c59dd746e59a713fb9313369441] | committer: Clément Bœsch

avformat/flacenc: use av_clip() instead of av_clip_c()

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

 libavformat/flacenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index b3695a2..0eea942 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_c(padding, 0, 16777215);
+    padding = av_clip(padding, 0, 16777215);
 
     ret = ff_flac_write_header(s->pb, codec->extradata,
                                codec->extradata_size, 0);



More information about the ffmpeg-cvslog mailing list