Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
db436b17
Commit
db436b17
authored
Sep 18, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: change assert() to av_assert()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a1fb2b93
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
swscale.c
libswscale/swscale.c
+8
-8
No files found.
libswscale/swscale.c
View file @
db436b17
...
@@ -469,8 +469,8 @@ static int swScale(SwsContext *c, const uint8_t *src[],
...
@@ -469,8 +469,8 @@ static int swScale(SwsContext *c, const uint8_t *src[],
lastInLumBuf
=
firstLumSrcY
-
1
;
lastInLumBuf
=
firstLumSrcY
-
1
;
if
(
firstChrSrcY
>
lastInChrBuf
)
if
(
firstChrSrcY
>
lastInChrBuf
)
lastInChrBuf
=
firstChrSrcY
-
1
;
lastInChrBuf
=
firstChrSrcY
-
1
;
a
ssert
(
firstLumSrcY
>=
lastInLumBuf
-
vLumBufSize
+
1
);
a
v_assert0
(
firstLumSrcY
>=
lastInLumBuf
-
vLumBufSize
+
1
);
a
ssert
(
firstChrSrcY
>=
lastInChrBuf
-
vChrBufSize
+
1
);
a
v_assert0
(
firstChrSrcY
>=
lastInChrBuf
-
vChrBufSize
+
1
);
DEBUG_BUFFERS
(
"dstY: %d
\n
"
,
dstY
);
DEBUG_BUFFERS
(
"dstY: %d
\n
"
,
dstY
);
DEBUG_BUFFERS
(
"
\t
firstLumSrcY: %d lastLumSrcY: %d lastInLumBuf: %d
\n
"
,
DEBUG_BUFFERS
(
"
\t
firstLumSrcY: %d lastLumSrcY: %d lastInLumBuf: %d
\n
"
,
...
@@ -498,9 +498,9 @@ static int swScale(SwsContext *c, const uint8_t *src[],
...
@@ -498,9 +498,9 @@ static int swScale(SwsContext *c, const uint8_t *src[],
src
[
3
]
+
(
lastInLumBuf
+
1
-
srcSliceY
)
*
srcStride
[
3
],
src
[
3
]
+
(
lastInLumBuf
+
1
-
srcSliceY
)
*
srcStride
[
3
],
};
};
lumBufIndex
++
;
lumBufIndex
++
;
a
ssert
(
lumBufIndex
<
2
*
vLumBufSize
);
a
v_assert0
(
lumBufIndex
<
2
*
vLumBufSize
);
a
ssert
(
lastInLumBuf
+
1
-
srcSliceY
<
srcSliceH
);
a
v_assert0
(
lastInLumBuf
+
1
-
srcSliceY
<
srcSliceH
);
a
ssert
(
lastInLumBuf
+
1
-
srcSliceY
>=
0
);
a
v_assert0
(
lastInLumBuf
+
1
-
srcSliceY
>=
0
);
hyscale
(
c
,
lumPixBuf
[
lumBufIndex
],
dstW
,
src1
,
srcW
,
lumXInc
,
hyscale
(
c
,
lumPixBuf
[
lumBufIndex
],
dstW
,
src1
,
srcW
,
lumXInc
,
hLumFilter
,
hLumFilterPos
,
hLumFilterSize
,
hLumFilter
,
hLumFilterPos
,
hLumFilterSize
,
formatConvBuffer
,
pal
,
0
);
formatConvBuffer
,
pal
,
0
);
...
@@ -520,9 +520,9 @@ static int swScale(SwsContext *c, const uint8_t *src[],
...
@@ -520,9 +520,9 @@ static int swScale(SwsContext *c, const uint8_t *src[],
src
[
3
]
+
(
lastInChrBuf
+
1
-
chrSrcSliceY
)
*
srcStride
[
3
],
src
[
3
]
+
(
lastInChrBuf
+
1
-
chrSrcSliceY
)
*
srcStride
[
3
],
};
};
chrBufIndex
++
;
chrBufIndex
++
;
a
ssert
(
chrBufIndex
<
2
*
vChrBufSize
);
a
v_assert0
(
chrBufIndex
<
2
*
vChrBufSize
);
a
ssert
(
lastInChrBuf
+
1
-
chrSrcSliceY
<
(
chrSrcSliceH
));
a
v_assert0
(
lastInChrBuf
+
1
-
chrSrcSliceY
<
(
chrSrcSliceH
));
a
ssert
(
lastInChrBuf
+
1
-
chrSrcSliceY
>=
0
);
a
v_assert0
(
lastInChrBuf
+
1
-
chrSrcSliceY
>=
0
);
// FIXME replace parameters through context struct (some at least)
// FIXME replace parameters through context struct (some at least)
if
(
c
->
needs_hcscale
)
if
(
c
->
needs_hcscale
)
...
...
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