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
87da1188
Commit
87da1188
authored
Aug 16, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ffv1enc: Factor rice high depth check out
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
ae0192ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
ffv1enc.c
libavcodec/ffv1enc.c
+7
-10
No files found.
libavcodec/ffv1enc.c
View file @
87da1188
...
...
@@ -598,11 +598,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
av_log
(
avctx
,
AV_LOG_ERROR
,
"bits_per_raw_sample invalid
\n
"
);
return
AVERROR_INVALIDDATA
;
}
if
(
s
->
ac
==
AC_GOLOMB_RICE
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"bits_per_raw_sample > 8, forcing range coder
\n
"
);
s
->
ac
=
AC_RANGE_CUSTOM_TAB
;
}
s
->
version
=
FFMAX
(
s
->
version
,
1
);
case
AV_PIX_FMT_GRAY8
:
case
AV_PIX_FMT_YA8
:
...
...
@@ -661,11 +656,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
s
->
version
=
FFMAX
(
s
->
version
,
1
);
if
(
s
->
ac
==
AC_GOLOMB_RICE
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"bits_per_raw_sample > 8, forcing coder 1
\n
"
);
s
->
ac
=
AC_RANGE_CUSTOM_TAB
;
}
break
;
default:
av_log
(
avctx
,
AV_LOG_ERROR
,
"format not supported
\n
"
);
...
...
@@ -673,6 +663,13 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
av_assert0
(
s
->
bits_per_raw_sample
>=
8
);
if
(
s
->
bits_per_raw_sample
>
8
)
{
if
(
s
->
ac
==
AC_GOLOMB_RICE
)
{
av_log
(
avctx
,
AV_LOG_INFO
,
"bits_per_raw_sample > 8, forcing range coder
\n
"
);
s
->
ac
=
AC_RANGE_CUSTOM_TAB
;
}
}
if
(
s
->
transparency
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"Storing alpha plane, this will require a recent FFV1 decoder to playback!
\n
"
);
}
...
...
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