Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -urp untrunc-master.old/track.cpp untrunc-master/track.cpp
- --- untrunc.old/track.cpp 2015-01-15 13:53:12.000000000 +0000
- +++ untrunc/track.cpp 2015-01-30 02:27:11.000000000 +0000
- @@ -226,7 +226,7 @@ int Codec::getLength(unsigned char *star
- if(length > maxlength) return -1;
- -#define SPLIT_NAL_PACKETS 1
- +//#define SPLIT_NAL_PACKETS 1
- #ifdef SPLIT_NAL_PACKETS
- return length;
- #endif
- @@ -240,10 +240,10 @@ int Codec::getLength(unsigned char *star
- int l = be32toh(*(int *)pos);
- if(l <= 0) break;
- if(pos[0] != 0) break; //not avc1
- int nal_type = (pos[4] & 0x1f);
- cout << "Intermediate nal type: " << nal_type << endl;
- - if(nal_type <= 5) found = true;
- +// if(nal_type <= 5) found = true;
- //if(nal_type <= 5 || nal_type >= 18) break;//wrong nal or not video
- if(nal_type > 12) break; //unknown nal type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement