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
1bb8a53f
Commit
1bb8a53f
authored
Aug 30, 2015
by
Yayoi
Committed by
Clément Bœsch
Sep 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/samidec: do not include trailing sami footer in the last packet
Signed-off-by:
Clément Bœsch
<
u@pkh.me
>
parent
fc9aa1fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
samidec.c
libavformat/samidec.c
+7
-1
No files found.
libavformat/samidec.c
View file @
1bb8a53f
...
...
@@ -68,11 +68,17 @@ static int sami_read_header(AVFormatContext *s)
while
(
!
ff_text_eof
(
&
tr
))
{
AVPacket
*
sub
;
const
int64_t
pos
=
ff_text_pos
(
&
tr
)
-
(
c
!=
0
);
int
is_sync
,
n
=
ff_smil_extract_next_text_chunk
(
&
tr
,
&
buf
,
&
c
);
int
is_sync
,
is_body
,
n
=
ff_smil_extract_next_text_chunk
(
&
tr
,
&
buf
,
&
c
);
if
(
n
==
0
)
break
;
is_body
=
!
av_strncasecmp
(
buf
.
str
,
"</BODY"
,
6
);
if
(
is_body
)
{
av_bprint_clear
(
&
buf
);
break
;
}
is_sync
=
!
av_strncasecmp
(
buf
.
str
,
"<SYNC"
,
5
);
if
(
is_sync
)
got_first_sync_point
=
1
;
...
...
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