Fix H.264 start code position search.

This will address incorrect start code search
in a sequence like 00 00 00 00 00 01.
Thanks Noah.

R=noahric@chromium.org, wzh@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/41159004

Cr-Commit-Position: refs/heads/master@{#8639}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8639 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
glaznev@webrtc.org 2015-03-06 23:32:20 +00:00
parent 1af1391b41
commit dc08a230da

View File

@ -822,7 +822,7 @@ int32_t MediaCodecVideoEncoder::NextNaluPosition(
continue;
}
if (head[3] != 0x01) { // got 000000xx
head += 4; // xx != 1, continue searching.
head++; // xx != 1, continue searching.
continue;
}
return (int32_t)(head - buffer);