summaryrefslogtreecommitdiff
path: root/libavformat/xwma.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-03-19 10:58:07 +0100
committerPaul B Mahol <onemda@gmail.com>2020-03-19 10:58:07 +0100
commitf5f6fbb6b2e597b582ec4ec71d6ffefb777a4c71 (patch)
treee71eb3100a52ad08c09f5c718949f967fa59e4c0 /libavformat/xwma.c
parentacc6f632b45f4b9eb0dc2572b3d95224022582cb (diff)
downloadffmpeg-f5f6fbb6b2e597b582ec4ec71d6ffefb777a4c71.tar.gz
avformat/xwma: return always proper error codes
Diffstat (limited to 'libavformat/xwma.c')
-rw-r--r--libavformat/xwma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/xwma.c b/libavformat/xwma.c
index b5dcb850c0..5a57caa841 100644
--- a/libavformat/xwma.c
+++ b/libavformat/xwma.c
@@ -60,16 +60,16 @@ static int xwma_read_header(AVFormatContext *s)
/* check RIFF header */
tag = avio_rl32(pb);
if (tag != MKTAG('R', 'I', 'F', 'F'))
- return -1;
+ return AVERROR_INVALIDDATA;
avio_rl32(pb); /* file size */
tag = avio_rl32(pb);
if (tag != MKTAG('X', 'W', 'M', 'A'))
- return -1;
+ return AVERROR_INVALIDDATA;
/* parse fmt header */
tag = avio_rl32(pb);
if (tag != MKTAG('f', 'm', 't', ' '))
- return -1;
+ return AVERROR_INVALIDDATA;
size = avio_rl32(pb);
st = avformat_new_stream(s, NULL);
if (!st)