[FFmpeg-cvslog] mp3enc:use FFMIN()

Michael Niedermayer git at videolan.org
Sat May 7 04:07:34 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 26 03:31:02 2011 +0200| [f2a90c3b3456ade0cff94ebd3b787a05305e50f0] | committer: Michael Niedermayer

mp3enc:use FFMIN()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mp3enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 7a80159..dfcad87 100644
--- a/libavformat/mp3enc.c
+++ b/libavformat/mp3enc.c
@@ -339,7 +339,7 @@ static void mp3_fix_xing(AVFormatContext *s)
     for (i = 1; i < VBR_TOC_SIZE; ++i) {
         int j = i * toc->pos / VBR_TOC_SIZE;
         int seek_point = 256LL * toc->bag[j] / xing_header->size;
-        avio_w8(s->pb, (uint8_t)(seek_point < 256 ? seek_point : 255));
+        avio_w8(s->pb, FFMIN(seek_point, 255));
     }
 
     avio_flush(s->pb);



More information about the ffmpeg-cvslog mailing list