History

lavf/showinfo: use error level when get invalid sidedata

Use error level when get invalid sidedata, and remove a unnecessary newline in error message.

Jun Zhao committed 7 years ago

Commit e282b7e1 parent 6f6769f1 file · +3 −3Browse files

Unified · Split

libavfilter/vf_showinfo.c+3−3
@@ -62,7 +62,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData · 61 unmodified lines
6262
6363 av_log(ctx, AV_LOG_INFO, "spherical information: ");
6464 if (sd->size < sizeof(*spherical)) {
65− av_log(ctx, AV_LOG_INFO, "invalid data");
65+ av_log(ctx, AV_LOG_ERROR, "invalid data");
6666 return;
6767 }
6868
@@ -100,7 +100,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) · 31 unmodified lines
100100
101101 av_log(ctx, AV_LOG_INFO, "stereoscopic information: ");
102102 if (sd->size < sizeof(*stereo)) {
103− av_log(ctx, AV_LOG_INFO, "invalid data");
103+ av_log(ctx, AV_LOG_ERROR, "invalid data");
104104 return;
105105 }
106106
@@ -121,7 +121,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) · 14 unmodified lines
121121 roi = (const AVRegionOfInterest *)sd->data;
122122 roi_size = roi->self_size;
123123 if (!roi_size || sd->size % roi_size != 0) {
124− av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.\n");
124+ av_log(ctx, AV_LOG_ERROR, "Invalid AVRegionOfInterest.self_size.");
125125 return;
126126 }
127127 nb_rois = sd->size / roi_size;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t