mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/sccdec: make splitting more robust
This commit is contained in:
parent
3cf2f515e3
commit
b52ca2cec2
@ -140,7 +140,7 @@ static int scc_read_header(AVFormatContext *s)
|
|||||||
lline = NULL;
|
lline = NULL;
|
||||||
|
|
||||||
if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&
|
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;
|
out[i] = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user