diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/aaxdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/aaxdec.c b/libavformat/aaxdec.c index 7d10e805ca..c6d2d1c8d1 100644 --- a/libavformat/aaxdec.c +++ b/libavformat/aaxdec.c @@ -264,6 +264,11 @@ static int aax_read_header(AVFormatContext *s) } } + if (!a->segments[0].end) { + ret = AVERROR_INVALIDDATA; + goto fail; + } + st = avformat_new_stream(s, NULL); if (!st) { ret = AVERROR(ENOMEM); |