mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
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
Block a user