Use error level when get invalid sidedata, and remove a unnecessary newline in error message.
Unified · Split
| @@ -62,7 +62,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData · 61 unmodified lines | |||
| 62 | 62 | ||
| 63 | av_log(ctx, AV_LOG_INFO, "spherical information: "); | 63 | av_log(ctx, AV_LOG_INFO, "spherical information: "); |
| 64 | if (sd->size < sizeof(*spherical)) { | 64 | if (sd->size < sizeof(*spherical)) { |
| 65 | av_log(ctx, AV_LOG_INFO, "invalid data"); | 65 | av_log(ctx, AV_LOG_ERROR, "invalid data"); |
| 66 | return; | 66 | return; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| @@ -100,7 +100,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) · 31 unmodified lines | |||
| 100 | 100 | ||
| 101 | av_log(ctx, AV_LOG_INFO, "stereoscopic information: "); | 101 | av_log(ctx, AV_LOG_INFO, "stereoscopic information: "); |
| 102 | if (sd->size < sizeof(*stereo)) { | 102 | if (sd->size < sizeof(*stereo)) { |
| 103 | av_log(ctx, AV_LOG_INFO, "invalid data"); | 103 | av_log(ctx, AV_LOG_ERROR, "invalid data"); |
| 104 | return; | 104 | return; |
| 105 | } | 105 | } |
| 106 | 106 | ||
| @@ -121,7 +121,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) · 14 unmodified lines | |||
| 121 | roi = (const AVRegionOfInterest *)sd->data; | 121 | roi = (const AVRegionOfInterest *)sd->data; |
| 122 | roi_size = roi->self_size; | 122 | roi_size = roi->self_size; |
| 123 | if (!roi_size || sd->size % roi_size != 0) { | 123 | 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."); |
| 125 | return; | 125 | return; |
| 126 | } | 126 | } |
| 127 | nb_rois = sd->size / roi_size; | 127 | nb_rois = sd->size / roi_size; |