Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-01-28 19:23:31 +0300
committerPaul B Mahol <onemda@gmail.com>2017-01-28 19:23:31 +0300
commit4cfa1f80a97641d9d4673e43c5ba4319d8290b06 (patch)
treebea88aeb9babfb71837966e8680d4888f6c7c1e0 /libavformat/sccdec.c
parentecd360041ea7f206e42736f046a3ecb9984e0763 (diff)
avformat/sccdec: attempt to fix valgrind issue
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/sccdec.c')
-rw-r--r--libavformat/sccdec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index a4ce5572a4..ddf5fdf870 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -31,7 +31,7 @@ typedef struct SCCContext {
static int scc_probe(AVProbeData *p)
{
- char buf[128];
+ char buf[18];
FFTextReader tr;
ff_text_init_buf(&tr, p->buf, p->buf_size);
@@ -39,8 +39,7 @@ static int scc_probe(AVProbeData *p)
while (ff_text_peek_r8(&tr) == '\r' || ff_text_peek_r8(&tr) == '\n')
ff_text_r8(&tr);
- if (ff_subtitles_read_line(&tr, buf, sizeof(buf)) < 0)
- return 0;
+ ff_text_read(&tr, buf, sizeof(buf));
if (!memcmp(buf, "Scenarist_SCC V1.0", 18))
return AVPROBE_SCORE_MAX;