diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-08-05 14:33:41 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-08-08 17:57:25 +0800 |
commit | e282b7ed7bf8d70135c03ec5555c994f2707009e (patch) | |
tree | fa4abe43d2441b0dcf07c5fba7f97031b317fd10 /libavfilter/vf_showinfo.c | |
parent | 6f6769f3ec5053b3e8d7e8de2640263b93aff90c (diff) | |
download | ffmpeg-e282b7ed7bf8d70135c03ec5555c994f2707009e.tar.gz |
lavf/showinfo: use error level when get invalid sidedata
Use error level when get invalid sidedata, and remove a unnecessary
newline in error message.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r-- | libavfilter/vf_showinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index d5c444ea0e..9fa322e404 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -62,7 +62,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData av_log(ctx, AV_LOG_INFO, "spherical information: "); if (sd->size < sizeof(*spherical)) { - av_log(ctx, AV_LOG_INFO, "invalid data"); + av_log(ctx, AV_LOG_ERROR, "invalid data"); return; } @@ -100,7 +100,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) av_log(ctx, AV_LOG_INFO, "stereoscopic information: "); if (sd->size < sizeof(*stereo)) { - av_log(ctx, AV_LOG_INFO, "invalid data"); + av_log(ctx, AV_LOG_ERROR, "invalid data"); return; } @@ -121,7 +121,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) roi = (const AVRegionOfInterest *)sd->data; roi_size = roi->self_size; if (!roi_size || sd->size % roi_size != 0) { - av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.\n"); + av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size."); return; } nb_rois = sd->size / roi_size; |