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
5b69c07d
Commit
5b69c07d
authored
Jan 07, 2013
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frmdec: tag 5 is AV_PIX_FMT_BGRA with reversed alpha (0=solid/opaque .. 255=transparent)
parent
4765f635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
frmdec.c
libavformat/frmdec.c
+7
-1
No files found.
libavformat/frmdec.c
View file @
5b69c07d
...
...
@@ -33,7 +33,7 @@ static const AVCodecTag frm_pix_fmt_tags[] = {
{
AV_PIX_FMT_RGB0
,
2
},
{
AV_PIX_FMT_RGB24
,
3
},
{
AV_PIX_FMT_BGR0
,
4
},
{
AV_PIX_FMT_BGR
0
,
5
},
{
AV_PIX_FMT_BGR
A
,
5
},
{
AV_PIX_FMT_NONE
,
0
},
};
...
...
@@ -88,6 +88,12 @@ static int frm_read_packet(AVFormatContext *avctx, AVPacket *pkt)
if
(
ret
<
0
)
return
ret
;
if
(
stc
->
pix_fmt
==
AV_PIX_FMT_BGRA
)
{
int
i
;
for
(
i
=
3
;
i
+
1
<=
pkt
->
size
;
i
+=
4
)
pkt
->
data
[
i
]
=
0xFF
-
pkt
->
data
[
i
];
}
pkt
->
stream_index
=
0
;
s
->
count
++
;
...
...
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