Browse Source

avformat/sccdec: make splitting more robust

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
b52ca2cec2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/sccdec.c

+ 1
- 1
libavformat/sccdec.c View File

@@ -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;



Loading…
Cancel
Save