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
e7d20d5e
Commit
e7d20d5e
authored
Oct 17, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movtextdec: Move declaration out of for initialisation statement
parent
e0a967a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
movtextdec.c
libavcodec/movtextdec.c
+2
-1
No files found.
libavcodec/movtextdec.c
View file @
e7d20d5e
...
...
@@ -436,6 +436,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
int
text_length
,
tsmb_type
,
ret_tsmb
;
uint64_t
tsmb_size
;
const
uint8_t
*
tsmb
;
size_t
i
;
if
(
!
ptr
||
avpkt
->
size
<
2
)
return
AVERROR_INVALIDDATA
;
...
...
@@ -495,7 +496,7 @@ static int mov_text_decode_frame(AVCodecContext *avctx,
if
(
tsmb_size
>
avpkt
->
size
-
m
->
tracksize
)
break
;
for
(
size_t
i
=
0
;
i
<
box_count
;
i
++
)
{
for
(
i
=
0
;
i
<
box_count
;
i
++
)
{
if
(
tsmb_type
==
box_types
[
i
].
type
)
{
if
(
m
->
tracksize
+
m
->
size_var
+
box_types
[
i
].
base_size
>
avpkt
->
size
)
break
;
...
...
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