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
615d602d
Commit
615d602d
authored
Dec 15, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against broken V_QUICKTIME in mkv.
My mkvmerge version seems to generate broken files.
parent
2a970dd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+15
-9
No files found.
modules/demux/mkv/matroska_segment.cpp
View file @
615d602d
...
@@ -790,15 +790,21 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
...
@@ -790,15 +790,21 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
,
tracks
[
i_track
]
->
i_extra_data
,
true
);
true
);
MP4_ReadBoxCommon
(
p_mp4_stream
,
p_box
);
if
(
MP4_ReadBoxCommon
(
p_mp4_stream
,
p_box
)
&&
MP4_ReadBox_sample_vide
(
p_mp4_stream
,
p_box
);
MP4_ReadBox_sample_vide
(
p_mp4_stream
,
p_box
)
)
tracks
[
i_track
]
->
fmt
.
i_codec
=
p_box
->
i_type
;
{
tracks
[
i_track
]
->
fmt
.
video
.
i_width
=
p_box
->
data
.
p_sample_vide
->
i_width
;
tracks
[
i_track
]
->
fmt
.
i_codec
=
p_box
->
i_type
;
tracks
[
i_track
]
->
fmt
.
video
.
i_height
=
p_box
->
data
.
p_sample_vide
->
i_height
;
tracks
[
i_track
]
->
fmt
.
video
.
i_width
=
p_box
->
data
.
p_sample_vide
->
i_width
;
tracks
[
i_track
]
->
fmt
.
i_extra
=
p_box
->
data
.
p_sample_vide
->
i_qt_image_description
;
tracks
[
i_track
]
->
fmt
.
video
.
i_height
=
p_box
->
data
.
p_sample_vide
->
i_height
;
tracks
[
i_track
]
->
fmt
.
p_extra
=
malloc
(
tracks
[
i_track
]
->
fmt
.
i_extra
);
tracks
[
i_track
]
->
fmt
.
i_extra
=
p_box
->
data
.
p_sample_vide
->
i_qt_image_description
;
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
p_box
->
data
.
p_sample_vide
->
p_qt_image_description
,
tracks
[
i_track
]
->
fmt
.
i_extra
);
tracks
[
i_track
]
->
fmt
.
p_extra
=
malloc
(
tracks
[
i_track
]
->
fmt
.
i_extra
);
MP4_FreeBox_sample_vide
(
p_box
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
p_box
->
data
.
p_sample_vide
->
p_qt_image_description
,
tracks
[
i_track
]
->
fmt
.
i_extra
);
MP4_FreeBox_sample_vide
(
p_box
);
}
else
{
free
(
p_box
);
}
stream_Delete
(
p_mp4_stream
);
stream_Delete
(
p_mp4_stream
);
}
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_MS/ACM"
)
)
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_MS/ACM"
)
)
...
...
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