fix vc1 streamtype detection
authorghost <andreas.monzner@multimedia-labs.de>
Sun, 9 Aug 2009 07:25:20 +0000 (09:25 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Sun, 9 Aug 2009 07:25:47 +0000 (09:25 +0200)
lib/dvb/pmt.cpp

index dc427aa15c1efe5741ce815f66b4cd4acd61a000..fb81fa4c3f45559892bb1b68d750a10b62d564f9 100644 (file)
@@ -400,9 +400,9 @@ int eDVBServicePMTHandler::getProgramInfo(struct program &program)
                                                                        case 0x56432d31: // == 'VC-1'
                                                                        {
                                                                                const AdditionalIdentificationInfoVector *vec = d->getAdditionalIdentificationInfo();
                                                                        case 0x56432d31: // == 'VC-1'
                                                                        {
                                                                                const AdditionalIdentificationInfoVector *vec = d->getAdditionalIdentificationInfo();
-                                                                               if (vec->size() > 1 && (*vec)[1] == 0x01) // subdescriptor tag
+                                                                               if (vec->size() > 1 && (*vec)[0] == 0x01) // subdescriptor tag
                                                                                {
                                                                                {
-                                                                                       if ((*vec)[2] >= 0x90) // profile_level
+                                                                                       if ((*vec)[1] >= 0x90) // profile_level
                                                                                                video.type = videoStream::vtVC1; // advanced profile
                                                                                        else
                                                                                                video.type = videoStream::vtVC1_SM; // simple main
                                                                                                video.type = videoStream::vtVC1; // advanced profile
                                                                                        else
                                                                                                video.type = videoStream::vtVC1_SM; // simple main