OSDN Git Service

modified Mpeg2Ext class in Utils
authorcocot <cocot@users.sourceforge.jp>
Wed, 25 Mar 2009 12:22:26 +0000 (21:22 +0900)
committercocot <cocot@users.sourceforge.jp>
Wed, 25 Mar 2009 12:22:26 +0000 (21:22 +0900)
src/Utils.cc
src/Utils.h

index a8ab253..ccb2aae 100755 (executable)
@@ -1808,39 +1808,6 @@ VideoFormat DtsInfo::GetVideoFormat(void)
 ///////////////////////////////////
 /** implement class Mpeg2Info   **/
 ///////////////////////////////////
-/*
-Mpeg2Info::Mpeg2Info(void)
-{
-        private class Mpeg2Ext : ElementaryParse
-        {
-
-            public override AspectRatio AspectRatio
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-            public override AudioPresentationType AudioPresentationType
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-            public override byte[] ElementaryDescriptors
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-            public override FrameRate FrameRate
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-            public override SamplingFrequency SamplingFrequency
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-            public override VideoFormat VideoFormat
-            {
-                get { throw new Exception("The method or operation is not implemented."); }
-            }
-}
-*/
-
 Mpeg2Info::Mpeg2Info(pByte data, int offset)
 {
     UInt32 marker = 0xffffffff;
index d29525a..16d2485 100755 (executable)
@@ -592,12 +592,24 @@ class Mpeg2Info : ElementaryParse {
         else
             mData.reset();
     };
-    AspectRatio GetAspectRatio(void);
-    AudioPresentationType GetAudioPresentationType(void);
-    pByte GetElementaryDescriptors(void);
-    FrameRate GetFrameRate(void);
-    SamplingFrequency GetSamplingFrequency(void);
-    VideoFormat GetVideoFormat(void);
+      AspectRatio GetAspectRatio(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
+      AudioPresentationType GetAudioPresentationType(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
+      pByte GetElementaryDescriptors(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
+      FrameRate GetFrameRate(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
+      SamplingFrequency GetSamplingFrequency(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
+      VideoFormat GetVideoFormat(void){
+          throw std::invalid_argument("The method or operation is not implemented.");
+      };
     bool GetProgressive(void){
         indicator = 12;
         if (GetNextBit() == 1)