fix bug in seekpoint uniquification
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 25 May 2001 23:15:08 +0000 (23:15 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 25 May 2001 23:15:08 +0000 (23:15 +0000)
src/flac/encode.c

index b52edf8..52cc56a 100644 (file)
@@ -647,7 +647,7 @@ bool convert_to_seek_table(char *requested_seek_points, int num_requested_seek_p
        qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetaData_SeekPoint), (int (*)(const void *, const void *))seekpoint_compare);
 
        /* uniqify the seekpoints */
-       first = false;
+       first = true;
        for(i = j = 0; i < seek_table->num_points; i++) {
                if(!first) {
                        if(seek_table->points[i].sample_number == seek_table->points[j-1].sample_number)