Mercurial > libavformat.hg
changeset 1088:e7fd91082489 libavformat
fix avc nal parsing
author | bcoudurier |
---|---|
date | Mon, 15 May 2006 17:11:50 +0000 |
parents | 8ffbf9385972 |
children | 0319672689ef |
files | movenc.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Mon May 15 12:38:33 2006 +0000 +++ b/movenc.c Mon May 15 17:11:50 2006 +0000 @@ -452,15 +452,15 @@ 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; } } }