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
e2a3df1a
Commit
e2a3df1a
authored
May 21, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Use more precise deprecation ifdefs
This fixes compilation with the libavcodec version bumped to 58.
parent
35c85806
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
avconv.c
avconv.c
+3
-3
No files found.
avconv.c
View file @
e2a3df1a
...
...
@@ -570,7 +570,7 @@ error:
exit_program
(
1
);
}
#if FF_API_CODED_FRAME
#if FF_API_CODED_FRAME
&& FF_API_ERROR_FRAME
static
double
psnr
(
double
d
)
{
return
-
10
.
0
*
log
(
d
)
/
log
(
10
.
0
);
...
...
@@ -598,7 +598,7 @@ static void do_video_stats(OutputStream *ost, int frame_size)
fprintf
(
vstats_file
,
"frame= %5d q= %2.1f "
,
frame_number
,
ost
->
quality
/
(
float
)
FF_QP2LAMBDA
);
#if FF_API_CODED_FRAME
#if FF_API_CODED_FRAME
&& FF_API_ERROR_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
if
(
enc
->
flags
&
AV_CODEC_FLAG_PSNR
)
fprintf
(
vstats_file
,
"PSNR= %6.2f "
,
psnr
(
enc
->
coded_frame
->
error
[
0
]
/
(
enc
->
width
*
enc
->
height
*
255
.
0
*
255
.
0
)));
...
...
@@ -913,7 +913,7 @@ static void print_report(int is_last_report, int64_t timer_start)
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"%X"
,
(
int
)
lrintf
(
log2
(
qp_histogram
[
j
]
+
1
)));
}
#if FF_API_CODED_FRAME
#if FF_API_CODED_FRAME
&& FF_API_ERROR_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
if
(
enc
->
flags
&
AV_CODEC_FLAG_PSNR
)
{
int
j
;
...
...
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