summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 11:19:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 11:19:52 +0000
commit318156ae6b6f8484a8fe8b2d3fc0073ae3bb010e (patch)
treef5df0d8623084870c0d36dc033c554c07d1aa554 /libmpcodecs
parent270ebbb913a2ab2e2065e57d660e1892091172d7 (diff)
downloadmpv-318156ae6b6f8484a8fe8b2d3fc0073ae3bb010e.tar.bz2
mpv-318156ae6b6f8484a8fe8b2d3fc0073ae3bb010e.tar.xz
Reindent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30569 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_theora.c51
1 files changed, 25 insertions, 26 deletions
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)
{