Commit e282b7ed authored by Jun Zhao's avatar Jun Zhao

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: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent 6f6769f3
...@@ -62,7 +62,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData ...@@ -62,7 +62,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData
av_log(ctx, AV_LOG_INFO, "spherical information: "); av_log(ctx, AV_LOG_INFO, "spherical information: ");
if (sd->size < sizeof(*spherical)) { if (sd->size < sizeof(*spherical)) {
av_log(ctx, AV_LOG_INFO, "invalid data"); av_log(ctx, AV_LOG_ERROR, "invalid data");
return; return;
} }
...@@ -100,7 +100,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) ...@@ -100,7 +100,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd)
av_log(ctx, AV_LOG_INFO, "stereoscopic information: "); av_log(ctx, AV_LOG_INFO, "stereoscopic information: ");
if (sd->size < sizeof(*stereo)) { if (sd->size < sizeof(*stereo)) {
av_log(ctx, AV_LOG_INFO, "invalid data"); av_log(ctx, AV_LOG_ERROR, "invalid data");
return; return;
} }
...@@ -121,7 +121,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) ...@@ -121,7 +121,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd)
roi = (const AVRegionOfInterest *)sd->data; roi = (const AVRegionOfInterest *)sd->data;
roi_size = roi->self_size; roi_size = roi->self_size;
if (!roi_size || sd->size % roi_size != 0) { 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; return;
} }
nb_rois = sd->size / roi_size; nb_rois = sd->size / roi_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment