[FFmpeg-devel] [PATCH 08/10] libavcodec/ccaption_dec.c: fix more whitespace

Aman Gupta ffmpeg at tmm1.net
Wed Jan 6 08:41:40 CET 2016


From: Aman Gupta <aman at tmm1.net>

---
 libavcodec/ccaption_dec.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index 423c576..3de16bf 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -220,7 +220,7 @@ static int write_char(CCaptionSubContext *ctx, char *row, uint8_t col, char ch)
         return 0;
     }
     else {
-        av_log(ctx, AV_LOG_WARNING,"Data Ignored since exceeding screen width\n");
+        av_log(ctx, AV_LOG_WARNING, "Data Ignored since exceeding screen width\n");
         return AVERROR_INVALIDDATA;
     }
 }
@@ -323,7 +323,7 @@ static int reap_screen(CCaptionSubContext *ctx)
 
     for (i = 0; screen->row_used && i < SCREEN_ROWS; i++)
     {
-        if (CHECK_FLAG(screen->row_used,i)) {
+        if (CHECK_FLAG(screen->row_used, i)) {
             char *str = screen->characters[i];
             /* skip space */
             while (*str == ' ')
@@ -360,7 +360,7 @@ static void handle_textattr(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
     ctx->cursor_color = pac2_attribs[i][0];
     ctx->cursor_font = pac2_attribs[i][1];
 
-    SET_FLAG(screen->row_used,ctx->cursor_row);
+    SET_FLAG(screen->row_used, ctx->cursor_row);
     ret = write_char(ctx, row, ctx->cursor_column, ' ');
     if (ret == 0)
         ctx->cursor_column++;
@@ -377,7 +377,7 @@ static void handle_pac(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
     int indent, i, ret;
 
     if (row_map[index] <= 0) {
-        av_log(ctx, AV_LOG_DEBUG,"Invalid pac index encountered\n");
+        av_log(ctx, AV_LOG_DEBUG, "Invalid pac index encountered\n");
         return;
     }
 
@@ -534,7 +534,7 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
     if (ctx->pktbuf->size < len) {
         ret = av_buffer_realloc(&ctx->pktbuf, len);
          if (ret < 0) {
-            av_log(ctx, AV_LOG_WARNING, "Insufficient Memory of %d truncated to %d\n",len, ctx->pktbuf->size);
+            av_log(ctx, AV_LOG_WARNING, "Insufficient Memory of %d truncated to %d\n", len, ctx->pktbuf->size);
             len = ctx->pktbuf->size;
             ret = 0;
         }
-- 
2.5.3



More information about the ffmpeg-devel mailing list