summaryrefslogtreecommitdiff
path: root/libavcodec/oggtheora.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2005-12-22 01:10:11 +0000
committerDiego Biurrun <diego@biurrun.de>2005-12-22 01:10:11 +0000
commitbb270c0896b39e1ae9277355e3c120ed3feb64a3 (patch)
treefc2fc2b1216d19acb3879abb6ea5a3b400f43fe4 /libavcodec/oggtheora.c
parent50827fcf44f34521df4708cdb633809b56fb9df3 (diff)
COSMETICS: tabs --> spaces, some prettyprinting
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/oggtheora.c')
-rw-r--r--libavcodec/oggtheora.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/libavcodec/oggtheora.c b/libavcodec/oggtheora.c
index 6c6e28f12b..9cdb4478cd 100644
--- a/libavcodec/oggtheora.c
+++ b/libavcodec/oggtheora.c
@@ -45,7 +45,7 @@ Theora_decode_frame(AVCodecContext *ctx, void *outdata, int *outdata_size,
thc->op.bytes = buf_size;
if(theora_decode_packetin(&thc->state, &thc->op))
- return -1;
+ return -1;
theora_decode_YUVout(&thc->state, &yuv);
@@ -78,7 +78,7 @@ Theora_decode_init(AVCodecContext *ctx)
uint8_t *cdp;
if(ctx->extradata_size < 6)
- return -1;
+ return -1;
theora_info_init(&thc->info);
@@ -87,25 +87,25 @@ Theora_decode_init(AVCodecContext *ctx)
size = ctx->extradata_size;
for(i = 0; i < 3; i++){
- hs = *cdp++ << 8;
- hs += *cdp++;
- size -= 2;
+ hs = *cdp++ << 8;
+ hs += *cdp++;
+ size -= 2;
- if(hs > size){
- av_log(ctx, AV_LOG_ERROR, "extradata too small: %i > %i\n",
+ if(hs > size){
+ av_log(ctx, AV_LOG_ERROR, "extradata too small: %i > %i\n",
hs, size);
- return -1;
- }
-
- op.packet = cdp;
- op.bytes = hs;
- op.b_o_s = !i;
- if(theora_decode_header(&thc->info, &thc->comment, &op))
- return -1;
- op.packetno++;
-
- cdp += hs;
- size -= hs;
+ return -1;
+ }
+
+ op.packet = cdp;
+ op.bytes = hs;
+ op.b_o_s = !i;
+ if(theora_decode_header(&thc->info, &thc->comment, &op))
+ return -1;
+ op.packetno++;
+
+ cdp += hs;
+ size -= hs;
}
theora_decode_init(&thc->state, &thc->info);