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() --- libavformat/rsodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rsodec.c') diff --git a/libavformat/rsodec.c b/libavformat/rsodec.c index 3a441a3a3d..2d57a964da 100644 --- a/libavformat/rsodec.c +++ b/libavformat/rsodec.c @@ -50,7 +50,7 @@ static int rso_read_header(AVFormatContext *s) bps = av_get_bits_per_sample(codec); if (!bps) { av_log_ask_for_sample(s, "could not determine bits per sample\n"); - return AVERROR_INVALIDDATA; + return AVERROR_PATCHWELCOME; } /* now we are ready: build format streams */ -- cgit v1.2.3