mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
examples/scaling_video: consistently use printf rather than av_log()
This commit is contained in:
parent
078e203379
commit
cb6defb053
@ -84,7 +84,7 @@ 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,7 +95,7 @@ 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user