summaryrefslogtreecommitdiff
path: root/libavformat/anm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-24 15:09:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-24 15:09:58 +0100
commitd69238e991844cb0e9407c26e64dd7a551aa5bab (patch)
treea6169232d84d75370f66dcf011f8d7ee45594f8a /libavformat/anm.c
parentc6664242e0700ea0bc10109c7e84c3f9cf7fb9ae (diff)
parentf3298f12997eb4b7ad203766f768f92e3dd72a2a (diff)
downloadffmpeg-d69238e991844cb0e9407c26e64dd7a551aa5bab.tar.gz
Merge commit 'f3298f12997eb4b7ad203766f768f92e3dd72a2a'
* commit 'f3298f12997eb4b7ad203766f768f92e3dd72a2a': Return proper error code after av_log_ask_for_sample() configure: cosmetics: Separate hwaccel dependencies from decoders/encoders oggdec: check memory allocation Conflicts: configure libavcodec/pictordec.c libavformat/anm.c libavformat/oggdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 69a5ddab0f..f93c57e08a 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);
@@ -163,7 +163,7 @@ static int read_header(AVFormatContext *s)
invalid:
av_log_ask_for_sample(s, NULL);
- return AVERROR_INVALIDDATA;
+ return AVERROR_PATCHWELCOME;
}
static int read_packet(AVFormatContext *s,