[MPlayer-cvslog] r30569 - trunk/libmpcodecs/vd_theora.c

reimar subversion at mplayerhq.hu
Sun Feb 14 12:19:52 CET 2010


Author: reimar
Date: Sun Feb 14 12:19:52 2010
New Revision: 30569

Log:
Reindent

Modified:
   trunk/libmpcodecs/vd_theora.c

Modified: trunk/libmpcodecs/vd_theora.c
==============================================================================
--- trunk/libmpcodecs/vd_theora.c	Sun Feb 14 12:17:12 2010	(r30568)
+++ trunk/libmpcodecs/vd_theora.c	Sun Feb 14 12:19:52 2010	(r30569)
@@ -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;
+    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);
+    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)) )
-          {
+    /* 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)
     {


More information about the MPlayer-cvslog mailing list