Commit db772308 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg4videodec: Use more specific error codes

Forward error codes where possible.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent eb60b9d3
......@@ -239,12 +239,12 @@ static inline int ff_mpeg4_pred_dc(MpegEncContext *s, int n, int level,
if (level < 0) {
av_log(s->avctx, AV_LOG_ERROR,
"dc<0 at %dx%d\n", s->mb_x, s->mb_y);
return -1;
return AVERROR_INVALIDDATA;
}
if (level > 2048 + scale) {
av_log(s->avctx, AV_LOG_ERROR,
"dc overflow at %dx%d\n", s->mb_x, s->mb_y);
return -1;
return AVERROR_INVALIDDATA;
}
}
if (level < 0)
......
This diff is collapsed.
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