summaryrefslogtreecommitdiff
path: root/libavformat/anm.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-12-23 18:10:05 +0100
committerDiego Biurrun <diego@biurrun.de>2012-12-23 18:56:56 +0100
commitf3298f12997eb4b7ad203766f768f92e3dd72a2a (patch)
treee349cd427d9cfcf74aae21a85cff911c2aacaee6 /libavformat/anm.c
parented40b6bf07342dc80f616e909f0e6fec4073ade4 (diff)
Return proper error code after av_log_ask_for_sample()
Diffstat (limited to 'libavformat/anm.c')
-rw-r--r--libavformat/anm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/anm.c b/libavformat/anm.c
index c7bc843c8e..7e52e8355b 100644
--- a/libavformat/anm.c
+++ b/libavformat/anm.c
@@ -86,7 +86,7 @@ static int read_header(AVFormatContext *s)
avio_skip(pb, 4); /* magic number */
if (avio_rl16(pb) != MAX_PAGES) {
av_log_ask_for_sample(s, "max_pages != " AV_STRINGIFY(MAX_PAGES) "\n");
- return AVERROR_INVALIDDATA;
+ return AVERROR_PATCHWELCOME;
}
anm->nb_pages = avio_rl16(pb);
@@ -166,7 +166,7 @@ static int read_header(AVFormatContext *s)
invalid:
av_log_ask_for_sample(s, NULL);
- ret = AVERROR_INVALIDDATA;
+ ret = AVERROR_PATCHWELCOME;
fail:
return ret;