h264: notice memory allocation failure
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commitbac3ab13ea
) Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit59a22afa0b
) Conflicts: libavcodec/h264.c Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:

committed by
Reinhard Tartler

parent
7b733e4b7f
commit
36c196bca4
@@ -1840,7 +1840,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
|
||||
h->prev_interlaced_frame = 1;
|
||||
|
||||
init_scan_tables(h);
|
||||
ff_h264_alloc_tables(h);
|
||||
if (ff_h264_alloc_tables(h) < 0) {
|
||||
av_log(h->s.avctx, AV_LOG_ERROR, "Could not allocate memory for h264\n");
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
for(i = 1; i < s->avctx->thread_count; i++) {
|
||||
H264Context *c;
|
||||
|
Reference in New Issue
Block a user