X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Flibzmpeg3%2Flibzmpeg3.C;h=93a4ae02bb575d40fa3ec4e39a0599b786c58c0a;hb=7e5a0760f40ff787cc3d93cb7768a901ebe52809;hp=409e7b43b97916d736d43faf278c9bbaa043755e;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/libzmpeg3/libzmpeg3.C b/cinelerra-5.1/libzmpeg3/libzmpeg3.C index 409e7b43..93a4ae02 100644 --- a/cinelerra-5.1/libzmpeg3/libzmpeg3.C +++ b/cinelerra-5.1/libzmpeg3/libzmpeg3.C @@ -418,7 +418,7 @@ check_sig(char *path) if( !fs->open_file() ) { /* File found */ char *ext = strrchr(path, '.'); uint32_t bits = fs->read_uint32(); - uint32_t bits2 = fs->read_uint32(); +// uint32_t bits2 = fs->read_uint32(); /* pre-approved suffixes */ if( ext && !strncasecmp(ext, ".mp3", 4) ) { @@ -428,10 +428,11 @@ check_sig(char *path) else if( bits == TOC_PREFIX ) { result = 1; } - /* Blu-Ray or AVC-HD*/ - else if( is_bd_(bits, bits2, ext) ) { - result = 1; - } +/* don't use, does not work well at all */ +// /* Blu-Ray or AVC-HD*/ +// else if( is_bd_(bits, bits2, ext) ) { +// result = 1; +// } else if( (((bits >> 24) & 0xff) == zmpeg3_t::SYNC_BYTE ) || (bits == zmpeg3_t::PACK_START_CODE) || ((bits & 0xfff00000) == 0xfff00000) ||