Afrinux
13th January 2006, 01:52
Hi all!
I am writing a program to take a sequence end code off a mpeg-2(vob) stream.
I search all the stream to find the sequence end code "0x00, 0x00, 0x01, 0xB7" and replace it by {0x00, 0x00, 0x00, 0x00}. Is it the right way to do it?
I am confused because, when I search the vob data in a binary editor, I sometimes find the code {0x00, 0x00, 0x01, 0xB7} inside the stream, where the sequence end code were not supposed to be.
Do you think it would be wise to look for both the sequence end code and the padding code to make sure that I am taking off the right sequence end code?
Thanks for helping.
Afrinux
I am writing a program to take a sequence end code off a mpeg-2(vob) stream.
I search all the stream to find the sequence end code "0x00, 0x00, 0x01, 0xB7" and replace it by {0x00, 0x00, 0x00, 0x00}. Is it the right way to do it?
I am confused because, when I search the vob data in a binary editor, I sometimes find the code {0x00, 0x00, 0x01, 0xB7} inside the stream, where the sequence end code were not supposed to be.
Do you think it would be wise to look for both the sequence end code and the padding code to make sure that I am taking off the right sequence end code?
Thanks for helping.
Afrinux