Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvet
HM
Commits
c36d6fbd
Commit
c36d6fbd
authored
Sep 14, 2017
by
Karsten Suehring
Browse files
add explicit casts to avoid warnings in MS VC++
parent
e35d62c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/Lib/TLibEncoder/SEIwrite.cpp
View file @
c36d6fbd
...
...
@@ -321,7 +321,7 @@ Void SEIWriter::xWriteSEIPictureTiming(const SEIPictureTiming& sei, const TComSP
Void
SEIWriter
::
xWriteSEIPanScanRect
(
const
SEIPanScanRect
&
sei
)
{
WRITE_UVLC
(
sei
.
m_panScanRectId
,
"pan_scan_rect_id"
);
const
UInt
numRegions
=
sei
.
m_panScanRectRegions
.
size
();
const
UInt
numRegions
=
(
UInt
)
sei
.
m_panScanRectRegions
.
size
();
if
(
!
sei
.
m_panScanRectCancelFlag
&&
numRegions
>
0
)
{
WRITE_FLAG
(
sei
.
m_panScanRectCancelFlag
,
"pan_scan_rect_cancel_flag"
);
...
...
@@ -441,14 +441,14 @@ Void SEIWriter::xWriteSEIFilmGrainCharacteristics(const SEIFilmGrainCharacterist
for
(
Int
c
=
0
;
c
<
3
;
c
++
)
{
const
SEIFilmGrainCharacteristics
::
CompModel
&
cm
=
sei
.
m_compModel
[
c
];
const
UInt
numIntensityIntervals
=
cm
.
intensityValues
.
size
();
const
UInt
numIntensityIntervals
=
(
UInt
)
cm
.
intensityValues
.
size
();
const
UInt
numModelValues
=
cm
.
numModelValues
;
WRITE_FLAG
(
sei
.
m_compModel
[
c
].
bPresentFlag
&&
numIntensityIntervals
>
0
&&
numModelValues
>
0
,
"comp_model_present_flag[c]"
);
}
for
(
Int
c
=
0
;
c
<
3
;
c
++
)
{
const
SEIFilmGrainCharacteristics
::
CompModel
&
cm
=
sei
.
m_compModel
[
c
];
const
UInt
numIntensityIntervals
=
cm
.
intensityValues
.
size
();
const
UInt
numIntensityIntervals
=
(
UInt
)
cm
.
intensityValues
.
size
();
const
UInt
numModelValues
=
cm
.
numModelValues
;
if
(
cm
.
bPresentFlag
&&
numIntensityIntervals
>
0
&&
numModelValues
>
0
)
{
...
...
Write
Preview
Supports
Markdown
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