diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-09 09:48:36 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-09 11:58:11 +0000 |
commit | 9bc59c108baf33f7ec5f9226ad9457b42939417a (patch) | |
tree | 183aabf170c1dd7095460771ea1aa25b8544f357 | |
parent | 6e07bb36393f03d16b792738196ae045fc24acb6 (diff) | |
download | ffmpeg-9bc59c108baf33f7ec5f9226ad9457b42939417a.tar.gz |
avcodec/bmpenc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/bmpenc.c | 2 |
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; |