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
809d71d6
Commit
809d71d6
authored
Jun 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws/swscale_unscaled: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e003da71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
swscale_unscaled.c
libswscale/swscale_unscaled.c
+3
-3
No files found.
libswscale/swscale_unscaled.c
View file @
809d71d6
...
...
@@ -23,7 +23,6 @@
#include <math.h>
#include <stdio.h>
#include "config.h"
#include <assert.h>
#include "swscale.h"
#include "swscale_internal.h"
#include "rgb2rgb.h"
...
...
@@ -33,6 +32,7 @@
#include "libavutil/mathematics.h"
#include "libavutil/bswap.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#define RGB2YUV_SHIFT 15
#define BY ( (int) (0.114 * 219 / 255 * (1 << RGB2YUV_SHIFT) + 0.5))
...
...
@@ -707,7 +707,7 @@ static int packedCopyWrapper(SwsContext *c, const uint8_t *src[],
while
(
length
+
c
->
srcW
<=
FFABS
(
dstStride
[
0
])
&&
length
+
c
->
srcW
<=
FFABS
(
srcStride
[
0
]))
length
+=
c
->
srcW
;
a
ssert
(
length
!=
0
);
a
v_assert1
(
length
!=
0
);
for
(
i
=
0
;
i
<
srcSliceH
;
i
++
)
{
memcpy
(
dstPtr
,
srcPtr
,
length
);
...
...
@@ -1089,7 +1089,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
}
else
if
(
c
->
srcFormat
==
PIX_FMT_GRAY8
||
c
->
srcFormat
==
PIX_FMT_GRAY8A
)
{
r
=
g
=
b
=
i
;
}
else
{
a
ssert
(
c
->
srcFormat
==
PIX_FMT_BGR4_BYTE
);
a
v_assert1
(
c
->
srcFormat
==
PIX_FMT_BGR4_BYTE
);
b
=
(
i
>>
3
)
*
255
;
g
=
((
i
>>
1
)
&
3
)
*
85
;
r
=
(
i
&
1
)
*
255
;
...
...
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