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
fe1de12f
Commit
fe1de12f
authored
Apr 16, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove two anonymous arrays.
Fixes compilation of pngenc.c and flvdec.c with PGC 13.4-0.
parent
9802f566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
pngenc.c
libavcodec/pngenc.c
+2
-1
flvdec.c
libavformat/flvdec.c
+2
-1
No files found.
libavcodec/pngenc.c
View file @
fe1de12f
...
...
@@ -57,8 +57,9 @@ static void png_get_interlaced_row(uint8_t *dst, int row_size,
int
x
,
mask
,
dst_x
,
j
,
b
,
bpp
;
uint8_t
*
d
;
const
uint8_t
*
s
;
static
const
int
masks
[]
=
{
0x80
,
0x08
,
0x88
,
0x22
,
0xaa
,
0x55
,
0xff
};
mask
=
(
int
[]){
0x80
,
0x08
,
0x88
,
0x22
,
0xaa
,
0x55
,
0xff
}
[
pass
];
mask
=
masks
[
pass
];
switch
(
bits_per_pixel
)
{
case
1
:
memset
(
dst
,
0
,
row_size
);
...
...
libavformat/flvdec.c
View file @
fe1de12f
...
...
@@ -742,9 +742,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
if
(
i
==
s
->
nb_streams
){
static
const
enum
AVMediaType
stream_types
[]
=
{
AVMEDIA_TYPE_VIDEO
,
AVMEDIA_TYPE_AUDIO
,
AVMEDIA_TYPE_DATA
};
av_log
(
s
,
AV_LOG_WARNING
,
"Stream discovered after head already parsed
\n
"
);
st
=
create_stream
(
s
,
(
int
[]){
AVMEDIA_TYPE_VIDEO
,
AVMEDIA_TYPE_AUDIO
,
AVMEDIA_TYPE_DATA
}
[
stream_type
]);
stream_types
[
stream_type
]);
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
...
...
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