]> granicus.if.org Git - libass/commitdiff
libass: fix type mismatch between size parameter and the way it's used
authoraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 5 Sep 2008 22:59:01 +0000 (22:59 +0000)
committeraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 5 Sep 2008 22:59:01 +0000 (22:59 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27531 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c
libass/ass.h

index 711d3c52af85d016f15c4d57b7f6fbc2051f6bbd..8022dfc9be1cc4c717fa7eedd53ee43a02a9d3de 100644 (file)
@@ -1021,7 +1021,7 @@ ass_track_t* ass_read_memory(ass_library_t* library, char* buf, size_t bufsize,
        return track;
 }
 
-char* read_file_recode(char* fname, char* codepage, int* size)
+char* read_file_recode(char* fname, char* codepage, size_t* size)
 {
        char* buf;
        size_t bufsize;
index 7eccbe955234333b5a07e1a562605ad607735e85..4bdea3a4aae5b0cf21b0192ccd359ac802d3f7b4 100644 (file)
@@ -179,7 +179,7 @@ void ass_process_codec_private(ass_track_t* track, char *data, int size);
 */
 void ass_process_chunk(ass_track_t* track, char *data, int size, long long timecode, long long duration);
 
-char* read_file_recode(char* fname, char* codepage, int* size);
+char* read_file_recode(char* fname, char* codepage, size_t* size);
 
 /**
  * \brief Read subtitles from file.