Revert unintended change

This commit is contained in:
Cameron Gutman 2013-11-10 15:21:58 -05:00
parent e507f4abfb
commit fc66caf567

View File

@ -255,6 +255,9 @@ class NAL {
// This assumes that the buffer passed in is already a special sequence // This assumes that the buffer passed in is already a special sequence
public static boolean isAvcFrameStart(AvByteBufferDescriptor specialSeq) public static boolean isAvcFrameStart(AvByteBufferDescriptor specialSeq)
{ {
if (specialSeq.length != 4)
return false;
// The frame start sequence is 00 00 00 01 // The frame start sequence is 00 00 00 01
return (specialSeq.data[specialSeq.offset+specialSeq.length-1] == 0x01); return (specialSeq.data[specialSeq.offset+specialSeq.length-1] == 0x01);
} }