[FFmpeg-cvslog] examples/scaling_video: consistently use printf rather than av_log()
Stefano Sabatini
git at videolan.org
Thu Aug 30 21:50:07 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Aug 30 21:44:51 2012 +0200| [cb6defb05339f472d7d720f6eb3143ba3c24d303] | committer: Stefano Sabatini
examples/scaling_video: consistently use printf rather than av_log()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb6defb05339f472d7d720f6eb3143ba3c24d303
---
doc/examples/scaling_video.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/doc/examples/scaling_video.c b/doc/examples/scaling_video.c
index 4d686c8..144b54a 100644
--- a/doc/examples/scaling_video.c
+++ b/doc/examples/scaling_video.c
@@ -84,9 +84,9 @@ int main(int argc, char **argv)
}
if (av_parse_video_size(&dst_w, &dst_h, dst_size) < 0) {
- av_log(NULL, AV_LOG_ERROR,
- "Invalid size '%s', must be in the form WxH or a valid size abbreviation\n",
- dst_size);
+ fprintf(stderr,
+ "Invalid size '%s', must be in the form WxH or a valid size abbreviation\n",
+ dst_size);
exit(1);
}
@@ -95,11 +95,11 @@ int main(int argc, char **argv)
dst_w, dst_h, dst_pix_fmt,
SWS_BILINEAR, NULL, NULL, NULL);
if (!sws_ctx) {
- av_log(NULL, AV_LOG_ERROR,
- "Impossible to create scale context for the conversion "
- "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(dst_pix_fmt), dst_w, dst_h);
+ fprintf(stderr,
+ "Impossible to create scale context for the conversion "
+ "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(dst_pix_fmt), dst_w, dst_h);
ret = AVERROR(EINVAL);
goto end;
}
More information about the ffmpeg-cvslog
mailing list