Commit 9bc59c10 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/bmpenc: return meaningful error code

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6e07bb36
......@@ -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;
......
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