[FFmpeg-devel] [PATCH 2/2] movtextenc.c: Support for Bold, Italic and Underlined styles

Philip Langdale philipl at overt.org
Tue Jun 23 07:27:35 CEST 2015


On Mon, 22 Jun 2015 19:58:09 +0530
Niklesh Lalwani <niklesh.lalwani at iitb.ac.in> wrote:

> Updated patch.
> 
> Thanks,
> Niklesh

I got a bunch of warnings when I compiled it. Please fix.

Thanks.

----------------------------------------------------------

CC	libavcodec/movtextenc.o
libavcodec/movtextenc.c: In function ‘mov_text_style_cb’:
libavcodec/movtextenc.c:124:17: warning: ‘return’ with a value, in
function returning void return AVERROR(ENOMEM);
                 ^
libavcodec/movtextenc.c:138:21: warning: ‘return’ with a value, in
function returning void return AVERROR(ENOMEM);
                     ^
libavcodec/movtextenc.c:167:13: warning: ‘return’ with a value, in
function returning void return AVERROR(ENOMEM);
             ^
libavcodec/movtextenc.c: In function ‘mov_text_encode_frame’:
libavcodec/movtextenc.c:242:47: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->tsmb_size, 4); ^
In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint32_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:243:47: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->tsmb_type, 4); ^
In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint32_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:244:47: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->style_entries, 2); ^
In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint16_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:246:51: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->style_attributes[j]->style_start,
2); ^ In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint16_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:247:51: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->style_attributes[j]->style_end,
2); ^ In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint16_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:248:51: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->style_fontID, 2); ^
In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint16_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^
libavcodec/movtextenc.c:251:51: warning: passing argument 2 of
‘av_bprint_append_data’ from incompatible pointer type
av_bprint_append_data(&s->buffer, &s->style_color, 4); ^
In file included from libavcodec/ass.h:26:0,
                 from libavcodec/movtextenc.c:30:
./libavutil/bprint.h:146:6: note: expected ‘const char *’ but argument
is of type ‘uint32_t *’ void av_bprint_append_data(AVBPrint *buf, const
char *data, unsigned size); ^

--phil


More information about the ffmpeg-devel mailing list