Commit df6e341b authored by Limin Wang's avatar Limin Wang Committed by Steven Liu

lavf/dump: use error log level for invalid size

Reviewed-by: 's avatarSteven Liu <lq@onvideo.cn>
Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 6866c54e
...@@ -210,7 +210,7 @@ static void dump_paramchange(void *ctx, AVPacketSideData *sd) ...@@ -210,7 +210,7 @@ static void dump_paramchange(void *ctx, AVPacketSideData *sd)
return; return;
fail: fail:
av_log(ctx, AV_LOG_INFO, "unknown param"); av_log(ctx, AV_LOG_ERROR, "unknown param");
} }
/* replaygain side data*/ /* replaygain side data*/
...@@ -239,7 +239,7 @@ static void dump_replaygain(void *ctx, AVPacketSideData *sd) ...@@ -239,7 +239,7 @@ static void dump_replaygain(void *ctx, AVPacketSideData *sd)
AVReplayGain *rg; AVReplayGain *rg;
if (sd->size < sizeof(*rg)) { if (sd->size < sizeof(*rg)) {
av_log(ctx, AV_LOG_INFO, "invalid data"); av_log(ctx, AV_LOG_ERROR, "invalid data");
return; return;
} }
rg = (AVReplayGain*)sd->data; rg = (AVReplayGain*)sd->data;
...@@ -255,7 +255,7 @@ static void dump_stereo3d(void *ctx, AVPacketSideData *sd) ...@@ -255,7 +255,7 @@ static void dump_stereo3d(void *ctx, AVPacketSideData *sd)
AVStereo3D *stereo; AVStereo3D *stereo;
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;
} }
...@@ -272,7 +272,7 @@ static void dump_audioservicetype(void *ctx, AVPacketSideData *sd) ...@@ -272,7 +272,7 @@ static void dump_audioservicetype(void *ctx, AVPacketSideData *sd)
enum AVAudioServiceType *ast = (enum AVAudioServiceType *)sd->data; enum AVAudioServiceType *ast = (enum AVAudioServiceType *)sd->data;
if (sd->size < sizeof(*ast)) { if (sd->size < sizeof(*ast)) {
av_log(ctx, AV_LOG_INFO, "invalid data"); av_log(ctx, AV_LOG_ERROR, "invalid data");
return; return;
} }
...@@ -315,7 +315,7 @@ static void dump_cpb(void *ctx, AVPacketSideData *sd) ...@@ -315,7 +315,7 @@ static void dump_cpb(void *ctx, AVPacketSideData *sd)
AVCPBProperties *cpb = (AVCPBProperties *)sd->data; AVCPBProperties *cpb = (AVCPBProperties *)sd->data;
if (sd->size < sizeof(*cpb)) { if (sd->size < sizeof(*cpb)) {
av_log(ctx, AV_LOG_INFO, "invalid data"); av_log(ctx, AV_LOG_ERROR, "invalid data");
return; return;
} }
...@@ -361,7 +361,7 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData * ...@@ -361,7 +361,7 @@ static void dump_spherical(void *ctx, AVCodecParameters *par, AVPacketSideData *
double yaw, pitch, roll; double yaw, pitch, roll;
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;
} }
......
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