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
cb6defb0
Commit
cb6defb0
authored
Aug 30, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/scaling_video: consistently use printf rather than av_log()
parent
078e2033
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
scaling_video.c
doc/examples/scaling_video.c
+8
-8
No files found.
doc/examples/scaling_video.c
View file @
cb6defb0
...
@@ -84,9 +84,9 @@ int main(int argc, char **argv)
...
@@ -84,9 +84,9 @@ int main(int argc, char **argv)
}
}
if
(
av_parse_video_size
(
&
dst_w
,
&
dst_h
,
dst_size
)
<
0
)
{
if
(
av_parse_video_size
(
&
dst_w
,
&
dst_h
,
dst_size
)
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
fprintf
(
stderr
,
"Invalid size '%s', must be in the form WxH or a valid size abbreviation
\n
"
,
"Invalid size '%s', must be in the form WxH or a valid size abbreviation
\n
"
,
dst_size
);
dst_size
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -95,11 +95,11 @@ int main(int argc, char **argv)
...
@@ -95,11 +95,11 @@ int main(int argc, char **argv)
dst_w
,
dst_h
,
dst_pix_fmt
,
dst_w
,
dst_h
,
dst_pix_fmt
,
SWS_BILINEAR
,
NULL
,
NULL
,
NULL
);
SWS_BILINEAR
,
NULL
,
NULL
,
NULL
);
if
(
!
sws_ctx
)
{
if
(
!
sws_ctx
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
fprintf
(
stderr
,
"Impossible to create scale context for the conversion "
"Impossible to create scale context for the conversion "
"fmt:%s s:%dx%d -> fmt:%s s:%dx%d
\n
"
,
"fmt:%s s:%dx%d -> fmt:%s s:%dx%d
\n
"
,
av_get_pix_fmt_name
(
src_pix_fmt
),
src_w
,
src_h
,
av_get_pix_fmt_name
(
src_pix_fmt
),
src_w
,
src_h
,
av_get_pix_fmt_name
(
dst_pix_fmt
),
dst_w
,
dst_h
);
av_get_pix_fmt_name
(
dst_pix_fmt
),
dst_w
,
dst_h
);
ret
=
AVERROR
(
EINVAL
);
ret
=
AVERROR
(
EINVAL
);
goto
end
;
goto
end
;
}
}
...
...
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