Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-06 02:17:30 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-12-06 02:49:20 +0300
commit50f9de59a08f4bbacda298377339318e3eb87b8e (patch)
tree7e9f9066dfbecaf22de7e5c8d9f0a6980e5a7f20 /libavformat/rmdec.c
parentef2f9073dda3a1ce73f44d444bc27fae5707f396 (diff)
avformat/rmdec: rm_read_extradata: add error message for oversized extradata
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index d6fc59f592..e267b01a1a 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -86,8 +86,10 @@ static void get_str8(AVIOContext *pb, char *buf, int buf_size)
static int rm_read_extradata(AVIOContext *pb, AVCodecContext *avctx, unsigned size)
{
- if (size >= 1<<24)
+ if (size >= 1<<24) {
+ av_log(avctx, AV_LOG_ERROR, "extradata size %u too large\n", size);
return -1;
+ }
if (ff_get_extradata(avctx, pb, size) < 0)
return AVERROR(ENOMEM);
return 0;