From 4b5bd6c38ff98c4fb017e2ee819d0ecfe202bbff Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Tue, 21 Nov 2006 17:40:10 +0000 Subject: Security fix addon to r5369 of mplayer svn. CVS patchset: 8385 CVS date: 2006/11/21 17:40:10 --- src/libffmpeg/libavcodec/shorten.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libffmpeg/libavcodec/shorten.c') diff --git a/src/libffmpeg/libavcodec/shorten.c b/src/libffmpeg/libavcodec/shorten.c index af1c3fe6e..fe956bc39 100644 --- a/src/libffmpeg/libavcodec/shorten.c +++ b/src/libffmpeg/libavcodec/shorten.c @@ -333,7 +333,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, } s->nwrap = FFMAX(NWRAP, maxnlpc); - allocate_buffers(s); + if (allocate_buffers(s)) + return -1; init_offset(s); -- cgit v1.2.3