mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/ccaption_dec: change write_char() to void as return value is unused
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
af13967b64
commit
309322ef65
@ -315,7 +315,7 @@ static void flush_decoder(AVCodecContext *avctx)
|
|||||||
/**
|
/**
|
||||||
* @param ctx closed caption context just to print log
|
* @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;
|
uint8_t col = ctx->cursor_column;
|
||||||
char *row = screen->characters[ctx->cursor_row];
|
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;
|
charset[col] = ctx->cursor_charset;
|
||||||
ctx->cursor_charset = CCSET_BASIC_AMERICAN;
|
ctx->cursor_charset = CCSET_BASIC_AMERICAN;
|
||||||
if (ch) ctx->cursor_column++;
|
if (ch) ctx->cursor_column++;
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
/* We have extra space at end only for null character */
|
/* We have extra space at end only for null character */
|
||||||
else if (col == SCREEN_COLUMNS && ch == 0) {
|
else if (col == SCREEN_COLUMNS && ch == 0) {
|
||||||
row[col] = ch;
|
row[col] = ch;
|
||||||
return 0;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user