Browse code

cosmetics: reindent and break long lines after last commits

Originally committed as revision 20931 to svn://svn.ffmpeg.org/ffmpeg/trunk

Kostya Shishkov authored on 2009/12/27 17:53:02
Showing 1 changed files
... ...
@@ -87,7 +87,8 @@ typedef struct IpvideoContext {
87 87
 static int copy_from(IpvideoContext *s, AVFrame *src, int delta_x, int delta_y)
88 88
 {
89 89
     int current_offset = s->pixel_ptr - s->current_frame.data[0];
90
-    int motion_offset = current_offset + delta_y * s->current_frame.linesize[0] + delta_x * (1 + s->is_16bpp);
90
+    int motion_offset = current_offset + delta_y * s->current_frame.linesize[0]
91
+                       + delta_x * (1 + s->is_16bpp);
91 92
     if (motion_offset < 0) {
92 93
         av_log(s->avctx, AV_LOG_ERROR, " Interplay video: motion offset < 0 (%d)\n", motion_offset);
93 94
         return -1;
... ...
@@ -96,7 +97,8 @@ static int copy_from(IpvideoContext *s, AVFrame *src, int delta_x, int delta_y)
96 96
             motion_offset, s->upper_motion_limit_offset);
97 97
         return -1;
98 98
     }
99
-    s->dsp.put_pixels_tab[!s->is_16bpp][0](s->pixel_ptr, src->data[0] + motion_offset, s->current_frame.linesize[0], 8);
99
+    s->dsp.put_pixels_tab[!s->is_16bpp][0](s->pixel_ptr, src->data[0] + motion_offset,
100
+                                           s->current_frame.linesize[0], 8);
100 101
     return 0;
101 102
 }
102 103
 
... ...
@@ -577,18 +579,18 @@ static void ipvideo_decode_opcodes(IpvideoContext *s)
577 577
     frame++;
578 578
 
579 579
     if (!s->is_16bpp) {
580
-    /* this is PAL8, so make the palette available */
581
-    memcpy(s->current_frame.data[1], s->avctx->palctrl->palette, PALETTE_COUNT * 4);
580
+        /* this is PAL8, so make the palette available */
581
+        memcpy(s->current_frame.data[1], s->avctx->palctrl->palette, PALETTE_COUNT * 4);
582 582
 
583
-    s->stride = s->current_frame.linesize[0];
584
-    s->stream_ptr = s->buf + 14;  /* data starts 14 bytes in */
585
-    s->stream_end = s->buf + s->size;
583
+        s->stride = s->current_frame.linesize[0];
584
+        s->stream_ptr = s->buf + 14;  /* data starts 14 bytes in */
585
+        s->stream_end = s->buf + s->size;
586 586
     } else {
587 587
         s->stride = s->current_frame.linesize[0] >> 1;
588 588
     }
589 589
     s->line_inc = s->stride - 8;
590 590
     s->upper_motion_limit_offset = (s->avctx->height - 8) * s->stride
591
-        + (s->avctx->width - 8) * (1 + s->is_16bpp);
591
+                                  + (s->avctx->width - 8) * (1 + s->is_16bpp);
592 592
 
593 593
     init_get_bits(&gb, s->decoding_map, s->decoding_map_size * 8);
594 594
     for (y = 0; y < s->avctx->height; y += 8) {
... ...
@@ -599,12 +601,12 @@ static void ipvideo_decode_opcodes(IpvideoContext *s)
599 599
                             x, y, opcode, s->stream_ptr);
600 600
 
601 601
             if (!s->is_16bpp) {
602
-            s->pixel_ptr = s->current_frame.data[0] + x
603
-                          + y*s->current_frame.linesize[0];
604
-            ret = ipvideo_decode_block[opcode](s);
602
+                s->pixel_ptr = s->current_frame.data[0] + x
603
+                              + y*s->current_frame.linesize[0];
604
+                ret = ipvideo_decode_block[opcode](s);
605 605
             } else {
606
-            s->pixel_ptr = s->current_frame.data[0] + x*2
607
-                          + y*s->current_frame.linesize[0];
606
+                s->pixel_ptr = s->current_frame.data[0] + x*2
607
+                              + y*s->current_frame.linesize[0];
608 608
             }
609 609
             if (ret != 0) {
610 610
                 av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode problem on frame %d, @ block (%d, %d)\n",