aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mp3enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-26 03:31:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-07 03:58:52 +0200
commitf2a90c3b3456ade0cff94ebd3b787a05305e50f0 (patch)
treef7b6f60fc55809468568ee5ef59e808ab3da7fcf /libavformat/mp3enc.c
parent01be9331c7c1e65fa5597739bc7bd9121a2d4571 (diff)
downloadffmpeg-f2a90c3b3456ade0cff94ebd3b787a05305e50f0.tar.gz
mp3enc:use FFMIN()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3enc.c')
-rw-r--r--libavformat/mp3enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3enc.c b/libavformat/mp3enc.c
index 7a801596c7..dfcad8753e 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);