Mercurial > libavcodec.hg
comparison oggvorbis.c @ 5089:bff60ecc02f9 libavcodec
Use AV_xx throughout libavcodec
author | ramiro |
---|---|
date | Sat, 02 Jun 2007 01:41:07 +0000 |
parents | 85a709aa3657 |
children |
comparison
equal
deleted
inserted
replaced
5088:8e206208db1f | 5089:bff60ecc02f9 |
---|---|
25 */ | 25 */ |
26 | 26 |
27 #include <vorbis/vorbisenc.h> | 27 #include <vorbis/vorbisenc.h> |
28 | 28 |
29 #include "avcodec.h" | 29 #include "avcodec.h" |
30 #include "bytestream.h" | |
30 | 31 |
31 #undef NDEBUG | 32 #undef NDEBUG |
32 #include <assert.h> | 33 #include <assert.h> |
33 | 34 |
34 #define OGGVORBIS_FRAME_SIZE 64 | 35 #define OGGVORBIS_FRAME_SIZE 64 |
232 return -1; | 233 return -1; |
233 } | 234 } |
234 | 235 |
235 if(p[0] == 0 && p[1] == 30) { | 236 if(p[0] == 0 && p[1] == 30) { |
236 for(i = 0; i < 3; i++){ | 237 for(i = 0; i < 3; i++){ |
237 hsizes[i] = *p++ << 8; | 238 hsizes[i] = bytestream_get_be16(&p); |
238 hsizes[i] += *p++; | |
239 headers[i] = p; | 239 headers[i] = p; |
240 p += hsizes[i]; | 240 p += hsizes[i]; |
241 } | 241 } |
242 } else if(*p == 2) { | 242 } else if(*p == 2) { |
243 unsigned int offset = 1; | 243 unsigned int offset = 1; |