Browse Source

svq3: propagate codec memory allocation failure in context init

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n0.9
Dustin Brody Anton Khirnov 14 years ago
parent
commit
a3e215cdc9
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavcodec/svq3.c

+ 4
- 1
libavcodec/svq3.c View File

@@ -924,7 +924,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)


h->b_stride = 4*s->mb_width; h->b_stride = 4*s->mb_width;


ff_h264_alloc_tables(h);
if (ff_h264_alloc_tables(h) < 0) {
av_log(avctx, AV_LOG_ERROR, "svq3 memory allocation failed\n");
return AVERROR(ENOMEM);
}
} }


return 0; return 0;


Loading…
Cancel
Save