Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
5cd17d17
Commit
5cd17d17
authored
Jan 02, 2018
by
François Cartegnie
🤞
Browse files
demux: minibox: fix dead loop
parent
a38f6756
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/codec/substx3g.c
View file @
5cd17d17
...
...
@@ -369,7 +369,8 @@ static int Decode( decoder_t *p_dec, block_t *p_block )
subpicture_updater_sys_t
*
p_spu_sys
=
p_spu
->
updater
.
p_sys
;
mp4_box_iterator_t
it
;
mp4_box_iterator_Init
(
&
it
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
mp4_box_iterator_Init
(
&
it
,
p_buf
,
p_block
->
i_buffer
-
(
p_buf
-
p_block
->
p_buffer
)
);
/* Parse our styles */
while
(
mp4_box_iterator_Next
(
&
it
)
)
{
...
...
modules/demux/mp4/minibox.h
View file @
5cd17d17
...
...
@@ -50,6 +50,7 @@ static bool mp4_box_iterator_Next( mp4_box_iterator_t *p_it )
p_it
->
i_buffer
-=
i_size
;
return
true
;
}
else
break
;
}
return
false
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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