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
0a3ba58b
Commit
0a3ba58b
authored
May 18, 2020
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fftools/ffmpeg_filter: check the codec's descriptor to see if it's lossless
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
d3bedba9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffmpeg_filter.c
fftools/ffmpeg_filter.c
+2
-1
No files found.
fftools/ffmpeg_filter.c
View file @
0a3ba58b
...
...
@@ -99,7 +99,8 @@ void choose_sample_fmt(AVStream *st, AVCodec *codec)
break
;
}
if
(
*
p
==
-
1
)
{
if
((
codec
->
capabilities
&
AV_CODEC_CAP_LOSSLESS
)
&&
av_get_sample_fmt_name
(
st
->
codecpar
->
format
)
>
av_get_sample_fmt_name
(
codec
->
sample_fmts
[
0
]))
const
AVCodecDescriptor
*
desc
=
avcodec_descriptor_get
(
codec
->
id
);
if
(
desc
&&
(
desc
->
props
&
AV_CODEC_PROP_LOSSLESS
)
&&
av_get_sample_fmt_name
(
st
->
codecpar
->
format
)
>
av_get_sample_fmt_name
(
codec
->
sample_fmts
[
0
]))
av_log
(
NULL
,
AV_LOG_ERROR
,
"Conversion will not be lossless.
\n
"
);
if
(
av_get_sample_fmt_name
(
st
->
codecpar
->
format
))
av_log
(
NULL
,
AV_LOG_WARNING
,
...
...
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