Mercurial > libavcodec.hg
diff oggvorbis.c @ 5089:bff60ecc02f9 libavcodec
Use AV_xx throughout libavcodec
author | ramiro |
---|---|
date | Sat, 02 Jun 2007 01:41:07 +0000 |
parents | 85a709aa3657 |
children |
line wrap: on
line diff
--- a/oggvorbis.c Fri Jun 01 21:17:05 2007 +0000 +++ b/oggvorbis.c Sat Jun 02 01:41:07 2007 +0000 @@ -27,6 +27,7 @@ #include <vorbis/vorbisenc.h> #include "avcodec.h" +#include "bytestream.h" #undef NDEBUG #include <assert.h> @@ -234,8 +235,7 @@ if(p[0] == 0 && p[1] == 30) { for(i = 0; i < 3; i++){ - hsizes[i] = *p++ << 8; - hsizes[i] += *p++; + hsizes[i] = bytestream_get_be16(&p); headers[i] = p; p += hsizes[i]; }