[FFmpeg-cvslog] avcodec/bmpenc: return meaningful error code
Paul B Mahol
git at videolan.org
Mon Sep 9 13:58:40 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 9 09:48:36 2013 +0000| [9bc59c108baf33f7ec5f9226ad9457b42939417a] | committer: Paul B Mahol
avcodec/bmpenc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9bc59c108baf33f7ec5f9226ad9457b42939417a
---
libavcodec/bmpenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c
index ee23a0c..a29a1d5 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;
More information about the ffmpeg-cvslog
mailing list