Suppose I am receiving packets containing H264 encoded NAL Units, and each NAL has correct START_CODE (0x00 00 00 01).
But in some NALUs, the later Bytes of the NAL may have been corrupted. Is there any standard way to validate whether the information represented by a NALU is correct or not?
And if it can be validated, is there any standard way to correct it according to the H264 standards ?
Further Clarification:
The problem to specify is somewhat like this ->
Server sends a x264 NALU like 0x 00000001abcdefgh and, when I receive the packet, it contains : 0x 00000001abcmnopdefgh.
This leads to failure of decompression , hence I was looking for a way to eliminate these bad data bytes.
The only way to validate it is to parse the entire nal and make sure you have the correct number of bits. Even then some errors may not be detected.
No there is no way to correct the errors unless the container/file includes erasure codes.