summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg4video.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-03-10 18:03:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2018-03-26 02:17:13 +0200
commitdb772308941a2a338c7809f90d347219a6a93074 (patch)
treecb806e880b0b760569cec4e9d20900a628e219da /libavcodec/mpeg4video.h
parenteb60b9d3aaaa42265fb1960be6fff6383cfdbf37 (diff)
downloadffmpeg-db772308941a2a338c7809f90d347219a6a93074.tar.gz
avcodec/mpeg4videodec: Use more specific error codes
Forward error codes where possible. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mpeg4video.h')
-rw-r--r--libavcodec/mpeg4video.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg4video.h b/libavcodec/mpeg4video.h
index 0ba502d50b..6672c6dd66 100644
--- a/libavcodec/mpeg4video.h
+++ b/libavcodec/mpeg4video.h
@@ -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)