Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
fbe00443
Commit
fbe00443
authored
Oct 26, 2012
by
Frédéric Yhuel
Committed by
Jean-Baptiste Kempf
Oct 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmp4: don't parse twice the file in MP4_BoxGetRoot
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3ce7f98b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+7
-5
No files found.
modules/demux/mp4/libmp4.c
View file @
fbe00443
...
...
@@ -3571,12 +3571,14 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *s )
return
p_root
;
p_root
->
i_size
=
stream_Size
(
s
);
stream_Seek
(
p_stream
,
0
);
/* Get the rest of the file */
i_result
=
MP4_ReadBoxContainerRaw
(
p_stream
,
p_root
);
if
(
stream_Tell
(
s
)
<
stream_Size
(
s
)
)
{
/* Get the rest of the file */
i_result
=
MP4_ReadBoxContainerRaw
(
p_stream
,
p_root
);
if
(
!
i_result
)
goto
error
;
if
(
!
i_result
)
goto
error
;
}
MP4_Box_t
*
p_moov
;
MP4_Box_t
*
p_cmov
;
...
...
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