[MPlayer-cvslog] r18861 - in trunk: mplayer.c subreader.c
Nico Sabbi
nsabbi at email.it
Fri Jun 30 09:49:55 CEST 2006
reynaldo wrote:
> Modified: trunk/subreader.c
> ==============================================================================
> --- trunk/subreader.c (original)
> +++ trunk/subreader.c Fri Jun 30 06:09:29 2006
> @@ -1218,7 +1218,7 @@
> if(log2vis) {
> len = fribidi_remove_bidi_marks (visual, len, NULL, NULL,
> NULL);
> - if((op = (char*)malloc(sizeof(char)*(max(2*orig_len,2*len) + 1))) == NULL) {
> + if((op = (char*)malloc((max(2*orig_len,2*len) + 1))) == NULL) {
> mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: error allocating mem.\n");
> l++;
> break;
> @@ -1314,7 +1314,7 @@
> char *detected_sub_cp = NULL;
> int i;
>
> - buffer = (unsigned char*)malloc(MAX_GUESS_BUFFER_SIZE*sizeof(char));
> + buffer = (unsigned char*)malloc(MAX_GUESS_BUFFER_SIZE);
> buflen = stream_read(st,buffer, MAX_GUESS_BUFFER_SIZE);
>
>
you forgot the cast here
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Tutta la musica che vuoi a portata di click!
* Entra in www.radiosnj.com
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5177&d=30-6
More information about the MPlayer-cvslog
mailing list