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){ ...@@ -57,7 +57,7 @@ static av_cold int bmp_encode_init(AVCodecContext *avctx){
break; break;
default: default:
av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n"); av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
return -1; return AVERROR(EINVAL);
} }
return 0; 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