1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

used FFMAX macro as pointed out by reimar

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23249 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2007-05-07 16:51:53 +00:00
parent a797b105f3
commit a2e997c155

View File

@ -328,6 +328,7 @@ static void render_txt(char *txt)
#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 @@ static char *menu_fribidi(char *txt)
} 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);