Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
50f1dcb7
Commit
50f1dcb7
authored
Feb 19, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DCP: kill warnings
parent
61426dcb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
14 deletions
+26
-14
modules/access/dcp/dcp.cpp
modules/access/dcp/dcp.cpp
+13
-13
modules/access/dcp/dcpparser.cpp
modules/access/dcp/dcpparser.cpp
+12
-0
modules/access/dcp/dcpparser.h
modules/access/dcp/dcpparser.h
+1
-1
No files found.
modules/access/dcp/dcp.cpp
View file @
50f1dcb7
...
...
@@ -136,17 +136,17 @@ class demux_sys_t
uint32_t
frame_no
;
/* frame rate */
unsigned
int
frame_rate_num
;
unsigned
int
frame_rate_denom
;
int
frame_rate_num
;
int
frame_rate_denom
;
/* total number of frames */
uint32_t
frames_total
;
/* current video reel */
int
i_video_reel
;
unsigned
int
i_video_reel
;
/* current audio reel */
int
i_audio_reel
;
unsigned
int
i_audio_reel
;
uint8_t
i_chans_to_reorder
;
/* do we need channel reordering */
uint8_t
pi_chan_table
[
AOUT_CHAN_MAX
];
...
...
@@ -156,8 +156,8 @@ class demux_sys_t
demux_sys_t
()
:
PictureEssType
(
ESS_UNKNOWN
),
v_videoReader
(
NULL
),
v_audioReader
(
NULL
),
v_videoReader
(),
v_audioReader
(),
p_video_es
(
NULL
),
p_audio_es
(
NULL
),
p_dcp
(
NULL
),
...
...
@@ -318,7 +318,7 @@ static int Open( vlc_object_t *obj )
/* Open video file */
EssenceType_t
essInter
;
for
(
in
t
i
=
0
;
i
<
(
p_sys
->
p_dcp
->
video_reels
.
size
()
);
i
++
)
for
(
size_
t
i
=
0
;
i
<
(
p_sys
->
p_dcp
->
video_reels
.
size
()
);
i
++
)
{
EssenceType
(
p_sys
->
p_dcp
->
video_reels
[
i
].
filename
.
c_str
(),
essInter
);
if
(
i
==
0
)
...
...
@@ -487,14 +487,14 @@ static int Open( vlc_object_t *obj )
if
(
(
AudioEssType
==
ESS_PCM_24b_48k
)
||
(
AudioEssType
==
ESS_PCM_24b_96k
)
)
{
PCM
::
AudioDescriptor
AudioDesc
;
for
(
int
i
=
0
;
i
<
(
p_sys
->
p_dcp
->
audio_reels
.
size
()
);
i
++
)
for
(
size_t
i
=
0
;
i
<
(
p_sys
->
p_dcp
->
audio_reels
.
size
()
);
i
++
)
{
if
(
i
!=
0
)
{
EssenceType
(
p_sys
->
p_dcp
->
audio_reels
[
i
].
filename
.
c_str
(),
AudioEssTypeCompare
);
if
(
AudioEssTypeCompare
!=
AudioEssType
)
{
msg_Err
(
p_demux
,
"Integrity check failed : different audio essence types"
,
msg_Err
(
p_demux
,
"Integrity check failed : different audio essence types
in %s
"
,
p_sys
->
p_dcp
->
audio_reels
[
i
].
filename
.
c_str
()
);
retval
=
VLC_EGENERIC
;
goto
error
;
...
...
@@ -832,21 +832,21 @@ void CloseDcpAndMxf( demux_t *p_demux )
case
ESS_UNKNOWN
:
break
;
case
ESS_JPEG_2000
:
for
(
in
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
{
if
(
p_sys
->
v_videoReader
[
i
].
p_PicMXFReader
)
p_sys
->
v_videoReader
[
i
].
p_PicMXFReader
->
Close
();
}
break
;
case
ESS_JPEG_2000_S
:
for
(
in
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
{
if
(
p_sys
->
v_videoReader
[
i
].
p_PicMXFSReader
)
p_sys
->
v_videoReader
[
i
].
p_PicMXFSReader
->
Close
();
}
break
;
case
ESS_MPEG2_VES
:
for
(
in
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
p_sys
->
v_videoReader
.
size
();
i
++
)
{
if
(
p_sys
->
v_videoReader
[
i
].
p_VideoMXFReader
)
p_sys
->
v_videoReader
[
i
].
p_VideoMXFReader
->
Close
();
...
...
@@ -856,7 +856,7 @@ void CloseDcpAndMxf( demux_t *p_demux )
break
;
}
for
(
in
t
i
=
0
;
i
<
p_sys
->
v_audioReader
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
p_sys
->
v_audioReader
.
size
();
i
++
)
{
if
(
p_sys
->
v_audioReader
[
i
].
p_AudioMXFReader
)
p_sys
->
v_audioReader
[
i
].
p_AudioMXFReader
->
Close
();
...
...
modules/access/dcp/dcpparser.cpp
View file @
50f1dcb7
...
...
@@ -442,6 +442,9 @@ int Asset::Parse( xml_reader_t *p_xmlReader, string p_node, int p_type)
case
ASSET_SIZE
:
/* Asset tags not in AssetMap */
break
;
default:
msg_Warn
(
this
->
p_demux
,
"Unknow ASSET_TAG: %i"
,
_tag
);
break
;
}
/* break the for loop as a tag is found*/
break
;
...
...
@@ -527,6 +530,9 @@ int Asset::ParsePKL( xml_reader_t *p_xmlReader)
case
ASSET_CHUNK_LIST
:
/* Asset tags not in PKL */
break
;
default:
msg_Warn
(
this
->
p_demux
,
"Unknow ASSET_TAG: %i"
,
_tag
);
break
;
}
/* break the for loop as a tag is found*/
break
;
...
...
@@ -807,6 +813,9 @@ int PKL::Parse()
goto
error
;
this
->
s_group_id
=
s_value
;
break
;
default:
msg_Warn
(
this
->
p_demux
,
"Unknow PKG_TAG: %i"
,
_tag
);
break
;
}
/* break the for loop as a tag is found*/
break
;
...
...
@@ -1301,6 +1310,9 @@ int CPL::Parse()
goto
error
;
this
->
s_content_kind
=
s_value
;
break
;
default:
msg_Warn
(
this
->
p_demux
,
"Unknow CPL_TAG: %i"
,
_tag
);
break
;
}
/* break the for loop as a tag is found*/
...
...
modules/access/dcp/dcpparser.h
View file @
50f1dcb7
...
...
@@ -71,7 +71,7 @@ struct info_reel
int
i_entrypoint
;
int
i_duration
;
int
i_correction
;
/* entrypoint - sum of previous durations */
in
t
i_absolute_end
;
/* correction + duration */
uint32_
t
i_absolute_end
;
/* correction + duration */
};
/* This struct stores the most important information about the DCP */
...
...
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