Ejemplo n.º 1
0
        public int method_4(Class47 class47_0, Class67 class67_0)
        {
            OGGClass3 @class = new OGGClass3();

            if (class67_0 != null)
            {
                @class.method_4(class67_0.byte_0, class67_0.int_0, class67_0.int_1);
                byte[] array = new byte[6];
                int    num   = @class.method_6(8);
                @class.method_5(array, 6);
                if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105)
                {
                    if (array[5] == 115)
                    {
                        switch (num)
                        {
                        case 1:
                            if (class67_0.int_2 == 0)
                            {
                                return(-1);
                            }
                            if (this.int_9 != 0)
                            {
                                return(-1);
                            }
                            return(this.method_2(@class));

                        case 2:
                        case 4:
                            return(-1);

                        case 3:
                            if (this.int_9 == 0)
                            {
                                return(-1);
                            }
                            return(class47_0.method_1(@class));

                        case 5:
                            if (this.int_9 != 0 && class47_0.byte_1 != null)
                            {
                                return(this.method_3(@class));
                            }
                            return(-1);

                        default:
                            return(-1);
                        }
                    }
                }
                return(-1);
            }
            return(-1);
        }
Ejemplo n.º 2
0
        private int method_11()
        {
            OGGClass5 oggClass5 = new OGGClass5();
            Class47   class47_  = new Class47();
            Class48   @class    = new Class48();

            int[] array = new int[1];
            int   num   = this.method_2(oggClass5, class47_, array, null);
            int   num2  = array[0];
            int   int_  = (int)this.long_0;

            this.class56_0.method_2();
            if (num == -1)
            {
                return(-1);
            }
            this.bool_0 = true;
            OGGStream.smethod_0(this.fileStream, 0L, OGGStream.int_5);
            this.long_0 = OGGStream.smethod_1(this.fileStream);
            long num3 = this.long_0;

            num3 = (long)this.method_1(@class);
            if (@class.method_5() != num2)
            {
                if (this.method_13(0L, 0L, num3 + 1L, num2, 0) < 0)
                {
                    this.method_22();
                    return(OGGStream.int_9);
                }
            }
            else if (this.method_13(0L, num3, num3 + 1L, num2, 0) < 0)
            {
                this.method_22();
                return(OGGStream.int_9);
            }
            this.method_3(oggClass5, class47_, int_);
            return(this.method_17(0));
        }
Ejemplo n.º 3
0
        private void method_3(OGGClass5 class49_1, Class47 class47_1, int int_24)
        {
            Class48 @class = new Class48();

            this.oggClass5 = new OGGClass5[this.int_20];
            this.class47_0 = new Class47[this.int_20];
            this.long_2    = new long[this.int_20];
            this.long_3    = new long[this.int_20];
            this.int_21    = new int[this.int_20];
            int i = 0;

            while (i < this.int_20)
            {
                if (class49_1 != null && class47_1 != null && i == 0)
                {
                    this.oggClass5[i] = class49_1;
                    this.class47_0[i] = class47_1;
                    this.long_2[i]    = (long)int_24;
                }
                else
                {
                    this.method_8(this.long_1[i]);
                    if (this.method_2(this.oggClass5[i], this.class47_0[i], null, null) == -1)
                    {
                        Console.Error.WriteLine("Error opening logical bitstream #" + (i + 1) + "\n");
                        this.long_2[i] = -1L;
                    }
                    else
                    {
                        this.long_2[i] = this.long_0;
                        this.class56_0.method_2();
                    }
                }
                long long_ = this.long_1[i + 1];
                this.method_8(long_);
                long num2;
                while (true)
                {
                    int num = this.method_1(@class);
                    if (num == -1)
                    {
                        goto Block_6;
                    }
                    num2 = @class.method_4();
                    if (num2 != -1L)
                    {
                        goto Block_5;
                    }
                }
IL_189:
                i++;
                continue;
Block_5:
                this.int_21[i] = @class.method_5();
                this.long_3[i] = num2;
                goto IL_189;
Block_6:
                Console.Error.WriteLine("Could not find last page of logical bitstream #" + i + "\n");
                this.oggClass5[i].method_1();
                this.class47_0[i].method_2();
                goto IL_189;
            }
        }
Ejemplo n.º 4
0
        private int method_2(OGGClass5 oggClass5, Class47 class47_1, int[] int_24, Class48 class48_0)
        {
            Class48 @class   = new Class48();
            Class67 class67_ = new Class67();

            if (class48_0 == null)
            {
                int num = this.method_0(@class, (long)OGGStream.int_2);
                if (num == OGGStream.int_9)
                {
                    return(OGGStream.int_9);
                }
                if (num < 0)
                {
                    return(OGGStream.int_13);
                }
                class48_0 = @class;
            }
            if (int_24 != null)
            {
                int_24[0] = class48_0.method_5();
            }
            this.class56_0.method_1(class48_0.method_5());
            oggClass5.method_0();
            class47_1.method_0();
            int i = 0;

            while (i < 3)
            {
                this.class56_0.method_6(class48_0);
                while (i < 3)
                {
                    int num2 = this.class56_0.method_5(class67_);
                    if (num2 == 0)
                    {
                        break;
                    }
                    if (num2 == -1)
                    {
                        Console.Error.WriteLine("Corrupt header in logical bitstream.");
                        oggClass5.method_1();
                        class47_1.method_2();
                        this.class56_0.method_2();
                        return(-1);
                    }
                    if (oggClass5.method_4(class47_1, class67_) != 0)
                    {
                        Console.Error.WriteLine("Illegal header in logical bitstream.");
                        oggClass5.method_1();
                        class47_1.method_2();
                        this.class56_0.method_2();
                        return(-1);
                    }
                    i++;
                }
                if (i < 3 && this.method_0(class48_0, 1L) < 0)
                {
                    Console.Error.WriteLine("Missing header in logical bitstream.");
                    oggClass5.method_1();
                    class47_1.method_2();
                    this.class56_0.method_2();
                    return(-1);
                }
            }
            return(0);
        }
Ejemplo n.º 5
0
 private void method_3(OGGClass5 class49_1, Class47 class47_1, int int_24)
 {
     Class48 @class = new Class48();
     this.oggClass5 = new OGGClass5[this.int_20];
     this.class47_0 = new Class47[this.int_20];
     this.long_2 = new long[this.int_20];
     this.long_3 = new long[this.int_20];
     this.int_21 = new int[this.int_20];
     int i = 0;
     while (i < this.int_20)
     {
         if (class49_1 != null && class47_1 != null && i == 0)
         {
             this.oggClass5[i] = class49_1;
             this.class47_0[i] = class47_1;
             this.long_2[i] = (long)int_24;
         }
         else
         {
             this.method_8(this.long_1[i]);
             if (this.method_2(this.oggClass5[i], this.class47_0[i], null, null) == -1)
             {
                 Console.Error.WriteLine("Error opening logical bitstream #" + (i + 1) + "\n");
                 this.long_2[i] = -1L;
             }
             else
             {
                 this.long_2[i] = this.long_0;
                 this.class56_0.method_2();
             }
         }
         long long_ = this.long_1[i + 1];
         this.method_8(long_);
         long num2;
         while (true)
         {
             int num = this.method_1(@class);
             if (num == -1)
             {
                 goto Block_6;
             }
             num2 = @class.method_4();
             if (num2 != -1L)
             {
                 goto Block_5;
             }
         }
     IL_189:
         i++;
         continue;
         Block_5:
         this.int_21[i] = @class.method_5();
         this.long_3[i] = num2;
         goto IL_189;
         Block_6:
         Console.Error.WriteLine("Could not find last page of logical bitstream #" + i + "\n");
         this.oggClass5[i].method_1();
         this.class47_0[i].method_2();
         goto IL_189;
     }
 }
Ejemplo n.º 6
0
 private int method_2(OGGClass5 oggClass5, Class47 class47_1, int[] int_24, Class48 class48_0)
 {
     Class48 @class = new Class48();
     Class67 class67_ = new Class67();
     if (class48_0 == null)
     {
         int num = this.method_0(@class, (long)OGGStream.int_2);
         if (num == OGGStream.int_9)
         {
             return OGGStream.int_9;
         }
         if (num < 0)
         {
             return OGGStream.int_13;
         }
         class48_0 = @class;
     }
     if (int_24 != null)
     {
         int_24[0] = class48_0.method_5();
     }
     this.class56_0.method_1(class48_0.method_5());
     oggClass5.method_0();
     class47_1.method_0();
     int i = 0;
     while (i < 3)
     {
         this.class56_0.method_6(class48_0);
         while (i < 3)
         {
             int num2 = this.class56_0.method_5(class67_);
             if (num2 == 0)
             {
                 break;
             }
             if (num2 == -1)
             {
                 Console.Error.WriteLine("Corrupt header in logical bitstream.");
                 oggClass5.method_1();
                 class47_1.method_2();
                 this.class56_0.method_2();
                 return -1;
             }
             if (oggClass5.method_4(class47_1, class67_) != 0)
             {
                 Console.Error.WriteLine("Illegal header in logical bitstream.");
                 oggClass5.method_1();
                 class47_1.method_2();
                 this.class56_0.method_2();
                 return -1;
             }
             i++;
         }
         if (i < 3 && this.method_0(class48_0, 1L) < 0)
         {
             Console.Error.WriteLine("Missing header in logical bitstream.");
             oggClass5.method_1();
             class47_1.method_2();
             this.class56_0.method_2();
             return -1;
         }
     }
     return 0;
 }
Ejemplo n.º 7
0
 private int method_11()
 {
     OGGClass5 oggClass5 = new OGGClass5();
     Class47 class47_ = new Class47();
     Class48 @class = new Class48();
     int[] array = new int[1];
     int num = this.method_2(oggClass5, class47_, array, null);
     int num2 = array[0];
     int int_ = (int)this.long_0;
     this.class56_0.method_2();
     if (num == -1)
     {
         return -1;
     }
     this.bool_0 = true;
     OGGStream.smethod_0(this.fileStream, 0L, OGGStream.int_5);
     this.long_0 = OGGStream.smethod_1(this.fileStream);
     long num3 = this.long_0;
     num3 = (long)this.method_1(@class);
     if (@class.method_5() != num2)
     {
         if (this.method_13(0L, 0L, num3 + 1L, num2, 0) < 0)
         {
             this.method_22();
             return OGGStream.int_9;
         }
     }
     else if (this.method_13(0L, num3, num3 + 1L, num2, 0) < 0)
     {
         this.method_22();
         return OGGStream.int_9;
     }
     this.method_3(oggClass5, class47_, int_);
     return this.method_17(0);
 }
Ejemplo n.º 8
0
 public int method_4(Class47 class47_0, Class67 class67_0)
 {
     OGGClass3 @class = new OGGClass3();
     if (class67_0 != null)
     {
         @class.method_4(class67_0.byte_0, class67_0.int_0, class67_0.int_1);
         byte[] array = new byte[6];
         int num = @class.method_6(8);
         @class.method_5(array, 6);
         if (array[0] == 118 && array[1] == 111 && array[2] == 114 && array[3] == 98 && array[4] == 105)
         {
             if (array[5] == 115)
             {
                 switch (num)
                 {
                 case 1:
                     if (class67_0.int_2 == 0)
                     {
                         return -1;
                     }
                     if (this.int_9 != 0)
                     {
                         return -1;
                     }
                     return this.method_2(@class);
                 case 2:
                 case 4:
                     return -1;
                 case 3:
                     if (this.int_9 == 0)
                     {
                         return -1;
                     }
                     return class47_0.method_1(@class);
                 case 5:
                     if (this.int_9 != 0 && class47_0.byte_1 != null)
                     {
                         return this.method_3(@class);
                     }
                     return -1;
                 default:
                     return -1;
                 }
             }
         }
         return -1;
     }
     return -1;
 }