diff options
author | Aman Gupta <aman@tmm1.net> | 2016-06-14 11:57:41 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-07-17 20:16:22 +0200 |
commit | 309322ef65ab70690e93a32b148e82b048ce92fe (patch) | |
tree | 785f3acd0b01c33f3bdbcae3c33772b3ed915ff8 | |
parent | af13967b6451dba059bb4ca2ba8de73a37b994fe (diff) | |
download | ffmpeg-309322ef65ab70690e93a32b148e82b048ce92fe.tar.gz |
avcodec/ccaption_dec: change write_char() to void as return value is unused
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/ccaption_dec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index f831399ee9..f9249e45fe 100644 --- a/libavcodec/ccaption_dec.c +++ b/libavcodec/ccaption_dec.c @@ -315,7 +315,7 @@ static void flush_decoder(AVCodecContext *avctx) /** * @param ctx closed caption context just to print log */ -static int write_char(CCaptionSubContext *ctx, struct Screen *screen, char ch) +static void write_char(CCaptionSubContext *ctx, struct Screen *screen, char ch) { uint8_t col = ctx->cursor_column; char *row = screen->characters[ctx->cursor_row]; @@ -328,16 +328,16 @@ static int write_char(CCaptionSubContext *ctx, struct Screen *screen, char ch) charset[col] = ctx->cursor_charset; ctx->cursor_charset = CCSET_BASIC_AMERICAN; if (ch) ctx->cursor_column++; - return 0; + return; } /* We have extra space at end only for null character */ else if (col == SCREEN_COLUMNS && ch == 0) { row[col] = ch; - return 0; + return; } else { av_log(ctx, AV_LOG_WARNING, "Data Ignored since exceeding screen width\n"); - return AVERROR_INVALIDDATA; + return; } } |