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
54b5cc03
Commit
54b5cc03
authored
Feb 11, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/flicvideo: fix some indentation issues
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5b2c0eeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
flicvideo.c
libavcodec/flicvideo.c
+11
-13
No files found.
libavcodec/flicvideo.c
View file @
54b5cc03
...
...
@@ -767,8 +767,8 @@ static int flic_decode_frame_24BPP(AVCodecContext *avctx,
void
*
data
,
int
*
got_frame
,
const
uint8_t
*
buf
,
int
buf_size
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"24Bpp FLC Unsupported due to lack of test files.
\n
"
);
return
AVERROR_PATCHWELCOME
;
av_log
(
avctx
,
AV_LOG_ERROR
,
"24Bpp FLC Unsupported due to lack of test files.
\n
"
);
return
AVERROR_PATCHWELCOME
;
}
static
int
flic_decode_frame
(
AVCodecContext
*
avctx
,
...
...
@@ -778,17 +778,15 @@ static int flic_decode_frame(AVCodecContext *avctx,
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
if
(
avctx
->
pix_fmt
==
AV_PIX_FMT_PAL8
)
{
return
flic_decode_frame_8BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
}
else
if
((
avctx
->
pix_fmt
==
AV_PIX_FMT_RGB555
)
||
(
avctx
->
pix_fmt
==
AV_PIX_FMT_RGB565
))
{
return
flic_decode_frame_15_16BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
}
else
if
(
avctx
->
pix_fmt
==
AV_PIX_FMT_BGR24
)
{
return
flic_decode_frame_24BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
return
flic_decode_frame_8BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
}
else
if
((
avctx
->
pix_fmt
==
AV_PIX_FMT_RGB555
)
||
(
avctx
->
pix_fmt
==
AV_PIX_FMT_RGB565
))
{
return
flic_decode_frame_15_16BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
}
else
if
(
avctx
->
pix_fmt
==
AV_PIX_FMT_BGR24
)
{
return
flic_decode_frame_24BPP
(
avctx
,
data
,
got_frame
,
buf
,
buf_size
);
}
/* Should not get here, ever as the pix_fmt is processed */
...
...
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