Commit f250a65c authored by bcoudurier's avatar bcoudurier

fix avc nal parsing


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5382 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent de3aebae
......@@ -452,15 +452,15 @@ static uint8_t *avc_find_startcode( uint8_t *p, uint8_t *end )
if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic
if( p[1] == 0 ) {
if( p[0] == 0 && p[2] == 1 )
return p;
return p-1;
if( p[2] == 0 && p[3] == 1 )
return p+1;
return p;
}
if( p[3] == 0 ) {
if( p[2] == 0 && p[4] == 1 )
return p+2;
return p+1;
if( p[4] == 0 && p[5] == 1 )
return p+3;
return p+2;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment