mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/bmpenc: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6e07bb3639
commit
9bc59c108b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue