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
0b2ecf82
Commit
0b2ecf82
authored
Jun 16, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/imgconvert: remove pointless switch block from avpicture_fill()
parent
b583ccc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
imgconvert.c
libavcodec/imgconvert.c
+0
-10
No files found.
libavcodec/imgconvert.c
View file @
0b2ecf82
...
@@ -334,16 +334,6 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width,
...
@@ -334,16 +334,6 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width,
}
}
}
}
switch
(
pix_fmt
)
{
case
PIX_FMT_RGB8
:
case
PIX_FMT_BGR8
:
case
PIX_FMT_RGB4_BYTE
:
case
PIX_FMT_BGR4_BYTE
:
case
PIX_FMT_GRAY8
:
// do not include palette for these pseudo-paletted formats
return
size
;
}
if
(
desc
->
flags
&
PIX_FMT_PAL
)
{
if
(
desc
->
flags
&
PIX_FMT_PAL
)
{
uint32_t
*
d32
=
(
unsigned
char
*
)(((
size_t
)
dest
+
3
)
&
~
3
);
uint32_t
*
d32
=
(
unsigned
char
*
)(((
size_t
)
dest
+
3
)
&
~
3
);
for
(
i
=
0
;
i
<
256
;
i
++
)
for
(
i
=
0
;
i
<
256
;
i
++
)
...
...
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