From f3298f12997eb4b7ad203766f768f92e3dd72a2a Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 23 Dec 2012 18:10:05 +0100 Subject: Return proper error code after av_log_ask_for_sample() --- libavcodec/ptx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/ptx.c') diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c index 77fd19615a..d4cd963e46 100644 --- a/libavcodec/ptx.c +++ b/libavcodec/ptx.c @@ -57,7 +57,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, if (bytes_per_pixel != 2) { av_log_ask_for_sample(avctx, "Image format is not RGB15.\n"); - return -1; + return AVERROR_PATCHWELCOME; } avctx->pix_fmt = AV_PIX_FMT_RGB555; -- cgit v1.2.3