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>2020-06-17 11:24:05 +0300
committerPaul B Mahol <onemda@gmail.com>2020-06-18 22:28:09 +0300
commitb52ca2cec27bc5d60750680f01f86d22dc8c2cbb (patch)
tree460fab25fdf21c658864cab9c9753d674e371bc4 /libavformat
parent3cf2f515e392ab22594f34966e93e75931cfc7e2 (diff)
avformat/sccdec: make splitting more robust
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/sccdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sccdec.c b/libavformat/sccdec.c
index 4d94743c81..645e52857b 100644
--- a/libavformat/sccdec.c
+++ b/libavformat/sccdec.c
@@ -140,7 +140,7 @@ static int scc_read_header(AVFormatContext *s)
lline = NULL;
if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&
- (av_strncasecmp(saveptr, "942f", 4) || !av_strncasecmp(saveptr, "942c", 4))) {
+ (av_strncasecmp(saveptr, "942f", 4) && !av_strncasecmp(saveptr, "942c", 4))) {
out[i] = 0;