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
4bae195f
Commit
4bae195f
authored
Feb 01, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const
Originally committed as revision 11757 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2b12d6fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bmp.c
libavcodec/bmp.c
+4
-4
No files found.
libavcodec/bmp.c
View file @
4bae195f
...
@@ -34,7 +34,7 @@ static int bmp_decode_init(AVCodecContext *avctx){
...
@@ -34,7 +34,7 @@ static int bmp_decode_init(AVCodecContext *avctx){
static
int
bmp_decode_frame
(
AVCodecContext
*
avctx
,
static
int
bmp_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
void
*
data
,
int
*
data_size
,
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
{
BMPContext
*
s
=
avctx
->
priv_data
;
BMPContext
*
s
=
avctx
->
priv_data
;
AVFrame
*
picture
=
data
;
AVFrame
*
picture
=
data
;
...
@@ -48,7 +48,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
...
@@ -48,7 +48,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
uint32_t
rgb
[
3
];
uint32_t
rgb
[
3
];
uint8_t
*
ptr
;
uint8_t
*
ptr
;
int
dsize
;
int
dsize
;
uint8_t
*
buf0
=
buf
;
const
uint8_t
*
buf0
=
buf
;
if
(
buf_size
<
14
){
if
(
buf_size
<
14
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"buf size too small (%d)
\n
"
,
buf_size
);
av_log
(
avctx
,
AV_LOG_ERROR
,
"buf size too small (%d)
\n
"
,
buf_size
);
...
@@ -193,7 +193,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
...
@@ -193,7 +193,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
break
;
break
;
case
16
:
case
16
:
for
(
i
=
0
;
i
<
avctx
->
height
;
i
++
){
for
(
i
=
0
;
i
<
avctx
->
height
;
i
++
){
uint16_t
*
src
=
(
uint16_t
*
)
buf
;
const
uint16_t
*
src
=
(
const
uint16_t
*
)
buf
;
uint16_t
*
dst
=
(
uint16_t
*
)
ptr
;
uint16_t
*
dst
=
(
uint16_t
*
)
ptr
;
for
(
j
=
0
;
j
<
avctx
->
width
;
j
++
)
for
(
j
=
0
;
j
<
avctx
->
width
;
j
++
)
...
@@ -205,7 +205,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
...
@@ -205,7 +205,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
break
;
break
;
case
32
:
case
32
:
for
(
i
=
0
;
i
<
avctx
->
height
;
i
++
){
for
(
i
=
0
;
i
<
avctx
->
height
;
i
++
){
uint8_t
*
src
=
buf
;
const
uint8_t
*
src
=
buf
;
uint8_t
*
dst
=
ptr
;
uint8_t
*
dst
=
ptr
;
for
(
j
=
0
;
j
<
avctx
->
width
;
j
++
){
for
(
j
=
0
;
j
<
avctx
->
width
;
j
++
){
...
...
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