avcodec/bmpenc: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-09-09 09:48:36 +00:00
parent 6e07bb3639
commit 9bc59c108b
1 changed files with 1 additions and 1 deletions

View File

@ -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;