On Sat, Feb 14, 2015 at 02:41:52AM +0530, Himangi Saraogi wrote:
> --- a/libavcodec/mpegvideo_enc.c
> +++ b/libavcodec/mpegvideo_enc.c
> @@ -247,7 +247,7 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx)
>              avctx->pix_fmt != AV_PIX_FMT_YUV422P) {
>              av_log(avctx, AV_LOG_ERROR,
>                     "only YUV420 and YUV422 are supported\n");
> -            return -1;
> +            return AVERROR_INVALIDDATA;

This is a user-supplied parameter so you should return EINVAL.
Probably the same applies to some of the other returns.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to