]> granicus.if.org Git - handbrake/commitdiff
Allows stream.c to try to read .VOB, .TS, and .mpeg files in addition to .vob, .ts...
authorjbrjake <jb.rubin@gmail.com>
Fri, 24 Aug 2007 19:20:21 +0000 (19:20 +0000)
committerjbrjake <jb.rubin@gmail.com>
Fri, 24 Aug 2007 19:20:21 +0000 (19:20 +0000)
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

index 1e8e3364790747f5c5f81d5723813898833f193f..ab8963c41009e6c60de80324a1cf10079e4c342f 100755 (executable)
@@ -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;
        }