On Mon, Jan 07, 2013 at 01:23:21PM +0100, Anton Khirnov wrote:
> ---
> libavcodec/txd.c | 15 ++++++++-------
> 1 file changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/libavcodec/txd.c b/libavcodec/txd.c
> index 8a10385..260f7f8 100644
> --- a/libavcodec/txd.c
> +++ b/libavcodec/txd.c
> @@ -65,7 +66,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void
> *data, int *got_frame,
> if (version < 8 || version > 9) {
> av_log(avctx, AV_LOG_ERROR, "texture data version %i is
> unsupported\n",
> version);
> - return -1;
> + return AVERROR_INVALIDDATA;
> }
>
> if (depth == 8) {
> @@ -74,19 +75,19 @@ static int txd_decode_frame(AVCodecContext *avctx, void
> *data, int *got_frame,
> avctx->pix_fmt = AV_PIX_FMT_RGB32;
> } else {
> av_log(avctx, AV_LOG_ERROR, "depth of %i is unsupported\n", depth);
> - return -1;
> + return AVERROR_INVALIDDATA;
> }
>
> @@ -141,7 +142,7 @@ static int txd_decode_frame(AVCodecContext *avctx, void
> *data, int *got_frame,
>
> unsupported:
> av_log(avctx, AV_LOG_ERROR, "unsupported d3d format (%08x)\n",
> d3d_format);
> - return -1;
> + return AVERROR_PATCHWELCOME;
> }
These all look like PATCHWELCOME errors and the av_logs could be of the
missing feature or ask for sample kind.
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel