From 6f0f5935ee1dbbc2f16209a6b503c6609fb9d62e Mon Sep 17 00:00:00 2001 From: jbrjake Date: Fri, 24 Aug 2007 19:20:21 +0000 Subject: Allows stream.c to try to read .VOB, .TS, and .mpeg files in addition to .vob, .ts, .m2t, and .mpg files. These are just more hard-coded file type extensions. awk, if this is a Bad Idea for a reason I'm ignorant of, feel free to revert. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@861 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/stream.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libhb') diff --git a/libhb/stream.c b/libhb/stream.c index 1e8e33647..ab8963c41 100755 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -83,8 +83,11 @@ int hb_stream_is_stream_type( char * path ) { if ((strstr(path,".mpg") != NULL) || (strstr(path,".vob") != NULL) || + (strstr(path, ".VOB") != NULL) || + (strstr(path, ".mpeg") != NULL) || (strstr(path,".ts") != NULL) || - (strstr(path, ".m2t") != NULL)) + (strstr(path, ".m2t") != NULL) || + (strstr(path, ".TS") != NULL)) { return 1; } @@ -112,12 +115,12 @@ hb_stream_t * hb_stream_open( char * path ) d->path = strdup( path ); - if ( ( strstr(d->path,".ts") != NULL) || ( strstr(d->path,".m2t") != NULL)) + if ( ( strstr(d->path,".ts") != NULL) || ( strstr(d->path,".m2t") != NULL) || ( strstr(d->path,".TS") != NULL) ) { d->stream_type = hb_stream_type_transport; hb_ts_stream_init(d); } - else if (( strstr(d->path,".mpg") != NULL) || ( strstr(d->path,".vob") != NULL)) + else if (( strstr(d->path,".mpg") != NULL) || ( strstr(d->path,".vob") != NULL) || ( strstr(d->path,".mpeg") != NULL) || ( strstr(d->path,".VOB") != NULL)) { d->stream_type = hb_stream_type_program; } -- cgit v1.2.3