diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 15:38:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-11 12:42:38 +0200 |
commit | a633928d47057426a9c328da594407d1c7da8a5c (patch) | |
tree | 17c1113d995b0fcf1560192f21c7458178e6c857 /libavformat/subtitles.c | |
parent | 17b26308a2e3144bb22e7070242f1e1c7928aa7f (diff) | |
download | ffmpeg-a633928d47057426a9c328da594407d1c7da8a5c.tar.gz |
avformat/subtitles: Use size_t for len
string length could theoretically be larger than int
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/subtitles.c')
-rw-r--r-- | libavformat/subtitles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/subtitles.c b/libavformat/subtitles.c index 67624fcf32..5bdbc8dc51 100644 --- a/libavformat/subtitles.c +++ b/libavformat/subtitles.c @@ -109,7 +109,7 @@ int ff_text_peek_r8(FFTextReader *r) } AVPacket *ff_subtitles_queue_insert(FFDemuxSubtitlesQueue *q, - const uint8_t *event, int len, int merge) + const uint8_t *event, size_t len, int merge) { AVPacket *subs, *sub; @@ -303,7 +303,7 @@ int ff_smil_extract_next_text_chunk(FFTextReader *tr, AVBPrint *buf, char *c) const char *ff_smil_get_attr_ptr(const char *s, const char *attr) { int in_quotes = 0; - const int len = strlen(attr); + const size_t len = strlen(attr); while (*s) { while (*s) { |