Mercurial > mplayer.hg
changeset 21444:ce7567436cb0
Open vobsub output files in binary mode, otherwise the OS might
do all kinds of evil mangling to them (fixes bug #668).
author | reimar |
---|---|
date | Sun, 03 Dec 2006 11:23:04 +0000 |
parents | 862b3942429c |
children | cd1a246a7dbc |
files | vobsub.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vobsub.c Sun Dec 03 09:59:55 2006 +0000 +++ b/vobsub.c Sun Dec 03 11:23:04 2006 +0000 @@ -1357,12 +1357,12 @@ result->aid = index; strcpy(filename, basename); strcat(filename, ".sub"); - result->fsub = fopen(filename, "a"); + result->fsub = fopen(filename, "ab"); if (result->fsub == NULL) perror("Error: vobsub_out_open subtitle file open failed"); strcpy(filename, basename); strcat(filename, ".idx"); - result->fidx = fopen(filename, "a"); + result->fidx = fopen(filename, "ab"); if (result->fidx) { if (ftell(result->fidx) == 0){ create_idx(result, palette, orig_width, orig_height);