mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: h264: new assembly version of get_cabac for x86_64 with PIC h264: use one table instead of several for cabac functions h264: (trivial) remove unneeded macro argument in x86/cabac.h libschroedingerdec: check malloc segment: reorder seg_write_header allocation avio: make avio_close(NULL) a no-op mov: Parse EC3SpecificBox (dec3 atom). Conflicts: libavcodec/cabac.c libavcodec/x86/cabac.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -106,6 +106,11 @@ static SchroBuffer *FindNextSchroParseUnit(SchroParseUnitContext *parse_ctx)
|
||||
return NULL;
|
||||
|
||||
in_buf = av_malloc(next_pu_offset);
|
||||
if (!in_buf) {
|
||||
av_log(parse_ctx, AV_LOG_ERROR, "Unable to allocate input buffer\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memcpy(in_buf, parse_ctx->buf, next_pu_offset);
|
||||
enc_buf = schro_buffer_new_with_data(in_buf, next_pu_offset);
|
||||
enc_buf->free = libschroedinger_decode_buffer_free;
|
||||
|
||||
Reference in New Issue
Block a user