h264: notice memory allocation failure
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit bac3ab13ea6a9dd8853e79ef3eacf51d234c8774) Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit 59a22afa0b50b9037133a7bc26bdc5023e7e1df9) Conflicts: libavcodec/h264.c Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user