summaryrefslogtreecommitdiff
path: root/libavcodec/svq1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-27 00:02:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-27 00:02:23 +0000
commitd6db1c9c6a331da88c3eca9b0afa939dbbf24651 (patch)
treec4059ef616e9dca7d87c6e61038d5cefe445ddba /libavcodec/svq1.c
parent5d9827bcf62a543d95ea27469e3e06153f352cda (diff)
handle direct rendering buffer allocation failure
Originally committed as revision 1075 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r--libavcodec/svq1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 741bef2172..d1df89bd80 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1085,7 +1085,8 @@ static int svq1_decode_frame(AVCodecContext *avctx,
result = svq1_decode_frame_header (&s->gb, s);
- MPV_frame_start(s, avctx);
+ if(MPV_frame_start(s, avctx) < 0)
+ return -1;
if (result != 0)
{