summaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-16 23:47:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-16 23:47:35 +0200
commit41bf67d8d4dd02b93df45d7862dbec4536738b5e (patch)
treee03e8cad8cab235437cb505937a6138e5371cce0 /libavcodec/svq3.c
parent67a8251690a17f05630eb6f45a73db0f0e806c72 (diff)
parenteb97dbb05a990266b04830ea8e179e0428656b98 (diff)
downloadffmpeg-streaming-41bf67d8d4dd02b93df45d7862dbec4536738b5e.zip
ffmpeg-streaming-41bf67d8d4dd02b93df45d7862dbec4536738b5e.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings avconv: remove a write-only variable avconv: remove pointless parameter from new_*_stream(). avconv: cosmetics, move code avconv: cosmetics -- move copy_chapters(). avconv: cosmetics -- move parse_forced_key_frames(). lavc: add audio flag to the 'b' option, deprecate 'ab'. avconv: rename sameq to same_quant doc/avconv: add forgotten end of chapter. Changelog: document avconv incompatibilities with ffmpeg. avconv: replace -vcodec/-acodec/-scodec with a better system. avconv: remove presets. svq3: propagate codec memory allocation failure in context init Conflicts: Changelog avconv.c libavcodec/options.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 54c1231..82aaedc 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -927,7 +927,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
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;
OpenPOWER on IntegriCloud