Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9b40ce5a
Commit
9b40ce5a
authored
Oct 27, 2015
by
Timothy Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: srtdec: Reindent
parent
d897d4c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
srtdec.c
libavcodec/srtdec.c
+7
-8
No files found.
libavcodec/srtdec.c
View file @
9b40ce5a
...
...
@@ -73,14 +73,13 @@ static int srt_decode_frame(AVCodecContext *avctx,
av_bprint_init
(
&
buffer
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
// TODO: reindent
// Do final divide-by-10 outside rescale to force rounding down.
ts_start
=
av_rescale_q
(
avpkt
->
pts
,
avctx
->
time_base
,
(
AVRational
){
1
,
100
});
ts_end
=
av_rescale_q
(
avpkt
->
pts
+
avpkt
->
duration
,
avctx
->
time_base
,
(
AVRational
){
1
,
100
});
// Do final divide-by-10 outside rescale to force rounding down.
ts_start
=
av_rescale_q
(
avpkt
->
pts
,
avctx
->
time_base
,
(
AVRational
){
1
,
100
});
ts_end
=
av_rescale_q
(
avpkt
->
pts
+
avpkt
->
duration
,
avctx
->
time_base
,
(
AVRational
){
1
,
100
});
srt_to_ass
(
avctx
,
&
buffer
,
avpkt
->
data
,
x1
,
y1
,
x2
,
y2
);
ret
=
ff_ass_add_rect_bprint
(
sub
,
&
buffer
,
ts_start
,
ts_end
-
ts_start
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment