You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/sccdec: unbreak previous commits to this file
This commit is contained in:
@@ -131,14 +131,11 @@ try_again:
|
|||||||
o2 = convert(c4) | (convert(c3) << 4);
|
o2 = convert(c4) | (convert(c3) << 4);
|
||||||
|
|
||||||
lline = NULL;
|
lline = NULL;
|
||||||
out[i+0] = 0xfc;
|
|
||||||
out[i+1] = o1;
|
|
||||||
out[i+2] = o2;
|
|
||||||
|
|
||||||
if (o1 == 0x94 && o2 == 0x2f && saveptr && av_strcasecmp(saveptr, "942f")) {
|
if (i > 12 && o1 == 0x94 && o2 == 0x20 && saveptr &&
|
||||||
|
(av_strncasecmp(saveptr, "942f", 4) || !av_strncasecmp(saveptr, "942c", 4))) {
|
||||||
int64_t duration;
|
int64_t duration;
|
||||||
|
|
||||||
i += 3;
|
|
||||||
out[i] = 0;
|
out[i] = 0;
|
||||||
duration = i * 11;
|
duration = i * 11;
|
||||||
|
|
||||||
@@ -146,13 +143,17 @@ try_again:
|
|||||||
if (!sub)
|
if (!sub)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
current_pos += i;
|
|
||||||
sub->pos = current_pos;
|
sub->pos = current_pos;
|
||||||
|
current_pos += i;
|
||||||
sub->pts = ts_start;
|
sub->pts = ts_start;
|
||||||
sub->duration = duration;
|
sub->duration = duration;
|
||||||
ts_start += duration;
|
ts_start += duration;
|
||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out[i+0] = 0xfc;
|
||||||
|
out[i+1] = o1;
|
||||||
|
out[i+2] = o2;
|
||||||
}
|
}
|
||||||
|
|
||||||
out[i] = 0;
|
out[i] = 0;
|
||||||
|
Reference in New Issue
Block a user