Mercurial > mplayer.hg
changeset 23231:ab87f5488c7d
used FFMAX macro as pointed out by reimar
author | ben |
---|---|
date | Mon, 07 May 2007 16:51:53 +0000 |
parents | 9f4d6e091022 |
children | c5ac43d53bb1 |
files | libmenu/menu.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmenu/menu.c Mon May 07 16:48:55 2007 +0000 +++ b/libmenu/menu.c Mon May 07 16:51:53 2007 +0000 @@ -328,6 +328,7 @@ #ifdef USE_FRIBIDI #include <fribidi/fribidi.h> +#include "libavutil/common.h" static char *menu_fribidi_charset = NULL; static int menu_flip_hebrew = 0; static int menu_fribidi_flip_commas = 0; @@ -353,7 +354,7 @@ } else { char_set_num = fribidi_parse_charset("UTF-8"); } - buffer_size = 1024 > (len+1) ? 1024 : (len+1); + buffer_size = FFMAX(1024,len+1); logical = malloc(buffer_size); visual = malloc(buffer_size); outputstr = malloc(buffer_size);