projectx cut files problem

Where all the bugs are reported and discussed
Post Reply
rhamp
Posts: 1
Joined: Sun Dec 02, 2018 3:36 pm

projectx cut files problem

Post by rhamp » Sun Dec 02, 2018 3:55 pm

Hi,

I recently discovered this great tool, thank you for it.

I'm using projectx to cut my .ts-files, and there seems to be a little problem when the video file starts with a com.
Instead of writing 0 as the first line of the Xcl cut list when the second is 1, comskip outputs 1 and 1, with the consequence that instead of cutting out the com's, projectx deletes the wanted show and all I have left are com's :lol:

I made a little change to the comskip.c, and now it does the job as it should for me.

original (at line 6890):

Code: Select all

    if (projectx_file && prev < start)
    {
        fprintf(projectx_file, "%ld\n", F2F(prev+1));
        fprintf(projectx_file, "%ld\n", F2F(start));
    }
    CLOSEOUTFILE(projectx_file);
changed to:

Code: Select all

    if (projectx_file && prev < start)
    {
		if ( F2F(start) != 1 )
			fprintf(projectx_file, "%ld\n", F2F(prev+1));
		else
			fprintf(projectx_file, "%ld\n", 0);
		fprintf(projectx_file, "%ld\n", F2F(start));
    }
    CLOSEOUTFILE(projectx_file);
Thank you again for this great tool.

erik
Site Admin
Posts: 3302
Joined: Sun Aug 21, 2005 3:49 pm

Re: projectx cut files problem

Post by erik » Thu Dec 06, 2018 3:32 pm

Thanks for the updated code. will include in next release (may take some time)

Post Reply