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
50fee0fc
Commit
50fee0fc
authored
May 29, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rawdec: fail in case of unknow pixel format
parent
e1197b9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
rawdec.c
libavcodec/rawdec.c
+5
-0
No files found.
libavcodec/rawdec.c
View file @
50fee0fc
...
...
@@ -97,6 +97,11 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
else
if
(
avctx
->
pix_fmt
==
PIX_FMT_NONE
&&
avctx
->
bits_per_coded_sample
)
avctx
->
pix_fmt
=
ff_find_pix_fmt
(
pix_fmt_bps_avi
,
avctx
->
bits_per_coded_sample
);
if
(
avctx
->
pix_fmt
==
PIX_FMT_NONE
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Pixel format was not specified and cannot be detected
\n
"
);
return
AVERROR
(
EINVAL
);
}
ff_set_systematic_pal2
(
context
->
palette
,
avctx
->
pix_fmt
);
context
->
length
=
avpicture_get_size
(
avctx
->
pix_fmt
,
avctx
->
width
,
avctx
->
height
);
if
((
avctx
->
bits_per_coded_sample
==
4
||
avctx
->
bits_per_coded_sample
==
2
)
&&
...
...
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