From 318156ae6b6f8484a8fe8b2d3fc0073ae3bb010e Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 14 Feb 2010 11:19:52 +0000 Subject: Reindent git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30569 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_theora.c | 51 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c index f1a7db1247..35e3edfab8 100644 --- a/libmpcodecs/vd_theora.c +++ b/libmpcodecs/vd_theora.c @@ -68,34 +68,33 @@ static int init(sh_video_t *sh){ ogg_packet op; int i; - context = calloc (sizeof (theora_struct_t), 1); - sh->context = context; - if (!context) - goto err_out; - - theora_info_init(&context->inf); - theora_comment_init(&context->cc); - - /* Read all header packets, pass them to theora_decode_header. */ - for (i = 0; i < THEORA_NUM_HEADER_PACKETS; i++) - { - op.bytes = ds_get_packet (sh->ds, &op.packet); - op.b_o_s = 1; - if ( (errorCode = theora_decode_header (&context->inf, &context->cc, &op)) ) - { + context = calloc (sizeof (theora_struct_t), 1); + sh->context = context; + if (!context) + goto err_out; + + theora_info_init(&context->inf); + theora_comment_init(&context->cc); + + /* Read all header packets, pass them to theora_decode_header. */ + for (i = 0; i < THEORA_NUM_HEADER_PACKETS; i++) + { + op.bytes = ds_get_packet (sh->ds, &op.packet); + op.b_o_s = 1; + if ( (errorCode = theora_decode_header (&context->inf, &context->cc, &op)) ) + { mp_msg(MSGT_DECAUDIO, MSGL_ERR, "Broken Theora header; errorCode=%i!\n", errorCode); goto err_out; - } - } - - /* now init codec */ - errorCode = theora_decode_init (&context->st, &context->inf); - if (errorCode) - { - mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Theora decode init failed: %i \n", - errorCode); - goto err_out; - } + } + } + + /* now init codec */ + errorCode = theora_decode_init (&context->st, &context->inf); + if (errorCode) + { + mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Theora decode init failed: %i \n", errorCode); + goto err_out; + } if(sh->aspect==0.0 && context->inf.aspect_denominator!=0) { -- cgit v1.2.3