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
24009f36
Commit
24009f36
authored
Mar 09, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make find_pix_fmt() non static
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
bbd1c43f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
raw.h
libavcodec/raw.h
+1
-0
rawdec.c
libavcodec/rawdec.c
+4
-4
No files found.
libavcodec/raw.h
View file @
24009f36
...
...
@@ -35,5 +35,6 @@ typedef struct PixelFormatTag {
}
PixelFormatTag
;
extern
const
PixelFormatTag
ff_raw_pix_fmt_tags
[];
enum
PixelFormat
ff_find_pix_fmt
(
const
PixelFormatTag
*
tags
,
unsigned
int
fourcc
);
#endif
/* AVCODEC_RAW_H */
libavcodec/rawdec.c
View file @
24009f36
...
...
@@ -62,7 +62,7 @@ static const PixelFormatTag pix_fmt_bps_mov[] = {
{
PIX_FMT_NONE
,
0
},
};
static
enum
PixelFormat
find_pix_fmt
(
const
PixelFormatTag
*
tags
,
unsigned
int
fourcc
)
enum
PixelFormat
ff_
find_pix_fmt
(
const
PixelFormatTag
*
tags
,
unsigned
int
fourcc
)
{
while
(
tags
->
pix_fmt
>=
0
)
{
if
(
tags
->
fourcc
==
fourcc
)
...
...
@@ -77,11 +77,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
RawVideoContext
*
context
=
avctx
->
priv_data
;
if
(
avctx
->
codec_tag
==
MKTAG
(
'r'
,
'a'
,
'w'
,
' '
))
avctx
->
pix_fmt
=
find_pix_fmt
(
pix_fmt_bps_mov
,
avctx
->
bits_per_coded_sample
);
avctx
->
pix_fmt
=
f
f_f
ind_pix_fmt
(
pix_fmt_bps_mov
,
avctx
->
bits_per_coded_sample
);
else
if
(
avctx
->
codec_tag
)
avctx
->
pix_fmt
=
find_pix_fmt
(
ff_raw_pix_fmt_tags
,
avctx
->
codec_tag
);
avctx
->
pix_fmt
=
f
f_f
ind_pix_fmt
(
ff_raw_pix_fmt_tags
,
avctx
->
codec_tag
);
else
if
(
avctx
->
pix_fmt
==
PIX_FMT_NONE
&&
avctx
->
bits_per_coded_sample
)
avctx
->
pix_fmt
=
find_pix_fmt
(
pix_fmt_bps_avi
,
avctx
->
bits_per_coded_sample
);
avctx
->
pix_fmt
=
f
f_f
ind_pix_fmt
(
pix_fmt_bps_avi
,
avctx
->
bits_per_coded_sample
);
ff_set_systematic_pal2
(
context
->
palette
,
avctx
->
pix_fmt
);
context
->
length
=
avpicture_get_size
(
avctx
->
pix_fmt
,
avctx
->
width
,
avctx
->
height
);
...
...
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