aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-09 09:48:36 +0000
committerPaul B Mahol <onemda@gmail.com>2013-09-09 11:58:11 +0000
commit9bc59c108baf33f7ec5f9226ad9457b42939417a (patch)
tree183aabf170c1dd7095460771ea1aa25b8544f357
parent6e07bb36393f03d16b792738196ae045fc24acb6 (diff)
downloadffmpeg-9bc59c108baf33f7ec5f9226ad9457b42939417a.tar.gz
avcodec/bmpenc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/bmpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index ee23a0c7cd..a29a1d564c 100644
--- a/libavcodec/bmpenc.c
+++ b/libavcodec/bmpenc.c
@@ -57,7 +57,7 @@ static av_cold int bmp_encode_init(AVCodecContext *avctx){
break;
default:
av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
- return -1;
+ return AVERROR(EINVAL);
}
return 0;