ports/multimedia/ffmpeg2theora/files/patch-src_subtitles.c
Antoine Brodin 26b4c8f71f Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed

With hat:	portmgr
2021-01-01 10:11:34 +00:00

11 lines
418 B
C

--- src/subtitles.c.orig 2016-01-10 04:35:56 UTC
+++ src/subtitles.c
@@ -284,7 +284,7 @@ static char *convert_subtitle_to_utf8(co
return NULL;
}
outptr=newtext;
- if (iconv(cd, &inptr, &insz, &outptr, &outsz) < 0) {
+ if (iconv(cd, &inptr, &insz, &outptr, &outsz) == (size_t)-1) {
warn(frontend, NULL, 0, "Failed to convert text to UTF-8\n");
free(newtext);
newtext = NULL;