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
00430075
Commit
00430075
authored
Jan 16, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support 64bit pam decoding.
parent
328e7932
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
pnm.c
libavcodec/pnm.c
+1
-2
pnmdec.c
libavcodec/pnmdec.c
+5
-0
No files found.
libavcodec/pnm.c
View file @
00430075
...
...
@@ -131,8 +131,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
if
(
maxval
<
256
)
{
avctx
->
pix_fmt
=
PIX_FMT_RGB32
;
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unsupported bit depth
\n
"
);
return
-
1
;
avctx
->
pix_fmt
=
PIX_FMT_RGBA64BE
;
}
}
else
{
return
-
1
;
...
...
libavcodec/pnmdec.c
View file @
00430075
...
...
@@ -58,6 +58,11 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
switch
(
avctx
->
pix_fmt
)
{
default:
return
-
1
;
case
PIX_FMT_RGBA64BE
:
n
=
avctx
->
width
*
8
;
components
=
4
;
sample_len
=
16
;
goto
do_read
;
case
PIX_FMT_RGB48BE
:
n
=
avctx
->
width
*
6
;
components
=
3
;
...
...
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