History

avformat/sccdec: make splitting more robust

Paul B Mahol committed 6 years ago

Commit b52ca2c1 parent 3cf2f511 file · +1 −1Browse files

Unified · Split

libavformat/sccdec.c+1−1
@@ -140,7 +140,7 @@ static int scc_read_header(AVFormatContext *s) · 139 unmodified lines
140 lline = NULL;140 lline = NULL;
141 141
142 if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&142 if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&
143 (av_strncasecmp(saveptr, "942f", 4) || !av_strncasecmp(saveptr, "942c", 4))) {143 (av_strncasecmp(saveptr, "942f", 4) && !av_strncasecmp(saveptr, "942c", 4))) {
144 144
145 out[i] = 0;145 out[i] = 0;
146 146

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t