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/truemotion1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/truemotion1.c') diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c index f6ca35c7b7..c49f9fecbf 100644 --- a/libavcodec/truemotion1.c +++ b/libavcodec/truemotion1.c @@ -356,7 +356,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s) if (s->flags & FLAG_SPRITE) { av_log_ask_for_sample(s->avctx, "SPRITE frame found.\n"); /* FIXME header.width, height, xoffset and yoffset aren't initialized */ - return -1; + return AVERROR_PATCHWELCOME; } else { s->w = header.xsize; s->h = header.ysize; -- cgit v1.2.3