avcodec/bmpenc: return meaningful error code
authorPaul B Mahol <onemda@gmail.com>
Mon, 9 Sep 2013 09:48:36 +0000 (09:48 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 9 Sep 2013 11:58:11 +0000 (11:58 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/bmpenc.c

index ee23a0c..a29a1d5 100644 (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;