/third_party/ffmpeg/libavcodec/ |
D | avpacket.c | 87 if (size < 0 || size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in packet_alloc() 90 ret = av_buffer_realloc(buf, size + AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc() 94 memset((*buf)->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc() 119 memset(pkt->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in av_shrink_packet() 125 av_assert0((unsigned)pkt->size <= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); in av_grow_packet() 127 INT_MAX - (pkt->size + AV_INPUT_BUFFER_PADDING_SIZE)) in av_grow_packet() 130 new_size = pkt->size + grow_by + AV_INPUT_BUFFER_PADDING_SIZE; in av_grow_packet() 161 memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in av_grow_packet() 168 if (size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in av_packet_from_data() 171 pkt->buf = av_buffer_create(data, size + AV_INPUT_BUFFER_PADDING_SIZE, in av_packet_from_data() [all …]
|
D | parser.c | 126 uint8_t dummy_buf[AV_INPUT_BUFFER_PADDING_SIZE]; in av_parser_parse2() 214 *poutbuf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); in av_parser_change() 220 buf_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_parser_change() 265 AV_INPUT_BUFFER_PADDING_SIZE); in ff_combine_frame() 268 …Failed to reallocate parser buffer to %d\n", *buf_size + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); in ff_combine_frame() 287 AV_INPUT_BUFFER_PADDING_SIZE); in ff_combine_frame() 289 …OR, "Failed to reallocate parser buffer to %d\n", next + pc->index + AV_INPUT_BUFFER_PADDING_SIZE); in ff_combine_frame() 295 if (next > -AV_INPUT_BUFFER_PADDING_SIZE) in ff_combine_frame() 297 next + AV_INPUT_BUFFER_PADDING_SIZE); in ff_combine_frame()
|
D | extract_extradata_bsf.c | 94 filtered_buf = av_buffer_alloc(filtered_size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_av1() 98 memset(filtered_buf->data + filtered_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_av1() 101 extradata = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_av1() 188 filtered_buf = av_buffer_alloc(filtered_size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_h2645() 192 memset(filtered_buf->data + filtered_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_h2645() 195 extradata = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_h2645() 250 *data = av_malloc(extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_vc1() 279 *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_mpeg12() 307 *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_mpeg4() 373 memset(extradata + extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in extract_extradata_filter()
|
D | hevc_mp4toannexb_bsf.c | 70 if (4 + AV_INPUT_BUFFER_PADDING_SIZE + nalu_len > SIZE_MAX - new_extradata_size) { in hevc_extradata_to_annexb() 74 …et = av_reallocp(&new_extradata, new_extradata_size + nalu_len + 4 + AV_INPUT_BUFFER_PADDING_SIZE); in hevc_extradata_to_annexb() 81 memset(new_extradata + new_extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in hevc_extradata_to_annexb()
|
D | dvdsub_parser.c | 55 if ((unsigned)pc->packet_len > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in dvdsub_parse() 59 pc->packet = av_malloc(pc->packet_len + AV_INPUT_BUFFER_PADDING_SIZE); in dvdsub_parse()
|
D | nuv.c | 130 + FFMAX(AV_LZO_OUTPUT_PADDING, AV_INPUT_BUFFER_PADDING_SIZE) in codec_reinit() 238 int outlen = c->decomp_size - FFMAX(AV_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING); in decode_frame() 245 … buf_size = c->decomp_size - FFMAX(AV_INPUT_BUFFER_PADDING_SIZE, AV_LZO_OUTPUT_PADDING) - outlen; in decode_frame() 246 memset(c->decomp_buf + buf_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in decode_frame()
|
D | codec_par.c | 80 dst->extradata = av_mallocz(src->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in avcodec_parameters_copy() 137 par->extradata = av_mallocz(codec->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in avcodec_parameters_from_context() 194 codec->extradata = av_mallocz(par->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in avcodec_parameters_to_context()
|
D | h2645_parse.c | 138 memset(dst + di, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ff_h2645_extract_rbsp() 349 if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in alloc_rbsp_buffer() 351 size += AV_INPUT_BUFFER_PADDING_SIZE; in alloc_rbsp_buffer() 356 memset(rbsp->rbsp_buffer + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in alloc_rbsp_buffer()
|
D | encode.c | 35 if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in ff_alloc_packet2() 37 size, INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); in ff_alloc_packet2() 63 if (avpkt->size < 0 || avpkt->size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in avcodec_default_get_encode_buffer() 71 ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE); in avcodec_default_get_encode_buffer() 77 memset(avpkt->data + avpkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in avcodec_default_get_encode_buffer() 86 if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in ff_get_encode_buffer()
|
D | bitstream_filter.c | 150 *poutbuf = av_malloc(pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); in av_bitstream_filter_filter() 172 … avctx->extradata = av_mallocz(priv->ctx->par_out->extradata_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_bitstream_filter_filter()
|
D | cbs_jpeg.c | 205 AV_INPUT_BUFFER_PADDING_SIZE); in cbs_jpeg_split_fragment() 221 memset(data + data_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in cbs_jpeg_split_fragment() 413 frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); in cbs_jpeg_assemble_fragment() 454 memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in cbs_jpeg_assemble_fragment()
|
D | dolby_e.h | 83 uint8_t buffer[1024 * 3 + AV_INPUT_BUFFER_PADDING_SIZE];
|
D | aac_parser.c | 38 uint8_t u8[8 + AV_INPUT_BUFFER_PADDING_SIZE]; in aac_sync()
|
D | utils.c | 53 if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in av_fast_padded_malloc() 58 if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) in av_fast_padded_malloc() 59 memset(*p + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_malloc() 65 if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in av_fast_padded_mallocz() 70 if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) in av_fast_padded_mallocz() 71 memset(*p, 0, min_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_mallocz()
|
D | cbs.c | 227 av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); in cbs_fill_fragment_data() 236 AV_INPUT_BUFFER_PADDING_SIZE); in cbs_fill_fragment_data() 407 AV_INPUT_BUFFER_PADDING_SIZE); in ff_cbs_write_extradata() 413 AV_INPUT_BUFFER_PADDING_SIZE); in ff_cbs_write_extradata() 687 unit->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); in ff_cbs_alloc_unit_data() 694 memset(unit->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ff_cbs_alloc_unit_data()
|
/third_party/ffmpeg/libavformat/ |
D | flac_picture.c | 123 if (len > MAX_TRUNC_PICTURE_SIZE || len >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in ff_flac_parse_picture() 145 if (!(data = av_buffer_alloc(len + AV_INPUT_BUFFER_PADDING_SIZE))) { in ff_flac_parse_picture() 158 memset(data->data + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ff_flac_parse_picture()
|
D | rtpdec_qt.c | 187 AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { in qt_rtp_parse_packet() 194 qt->pkt->data = av_realloc(NULL, alen + AV_INPUT_BUFFER_PADDING_SIZE); in qt_rtp_parse_packet() 211 memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in qt_rtp_parse_packet()
|
D | takdec.c | 92 buffer = av_malloc(size - 3 + AV_INPUT_BUFFER_PADDING_SIZE); in tak_read_header() 95 memset(buffer + size - 3, 0, AV_INPUT_BUFFER_PADDING_SIZE); in tak_read_header()
|
D | apngdec.c | 130 if (len > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - previous_size) in append_extradata() 134 new_extradata = av_realloc(par->extradata, new_size + AV_INPUT_BUFFER_PADDING_SIZE); in append_extradata() 137 memset(new_extradata + new_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in append_extradata()
|
D | oggparsetheora.c | 130 cds + AV_INPUT_BUFFER_PADDING_SIZE)) < 0) { in theora_header() 134 memset(st->codecpar->extradata + cds, 0, AV_INPUT_BUFFER_PADDING_SIZE); in theora_header()
|
D | avc.c | 240 out = av_mallocz(out_size + AV_INPUT_BUFFER_PADDING_SIZE); in ff_avc_write_annexb_extradata() 275 dst = av_malloc(src_len + AV_INPUT_BUFFER_PADDING_SIZE); in ff_nal_unit_extract_rbsp() 295 memset(dst + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); in ff_nal_unit_extract_rbsp()
|
/third_party/ffmpeg/doc/examples/ |
D | decode_video.c | 91 uint8_t inbuf[INBUF_SIZE + AV_INPUT_BUFFER_PADDING_SIZE]; in main() 110 memset(inbuf + INBUF_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE); in main()
|
/third_party/ffmpeg/tests/checkasm/ |
D | hevc_sao.c | 36 #define PIXEL_STRIDE (2*MAX_PB_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) //same with sao_edge src_stride 113 int offset = (AV_INPUT_BUFFER_PADDING_SIZE + PIXEL_STRIDE)*SIZEOF_PIXEL; in check_sao_edge()
|
/third_party/ffmpeg/tests/api/ |
D | api-h264-slice-test.c | 139 nal = av_malloc(MAX_SLICES * UINT16_MAX + AV_INPUT_BUFFER_PADDING_SIZE); in main() 211 memset(nal, 0, MAX_SLICES * UINT16_MAX + AV_INPUT_BUFFER_PADDING_SIZE); in main()
|
/third_party/gstreamer/gst_libav/ext/libav/ |
D | gstavauddec.c | 284 params.padding = AV_INPUT_BUFFER_PADDING_SIZE; in gst_ffmpegauddec_propose_allocation() 693 || (map.maxsize - map.size) < AV_INPUT_BUFFER_PADDING_SIZE)) { in gst_ffmpegauddec_handle_frame() 695 if (ffmpegdec->padded_size < size + AV_INPUT_BUFFER_PADDING_SIZE) { in gst_ffmpegauddec_handle_frame() 696 ffmpegdec->padded_size = size + AV_INPUT_BUFFER_PADDING_SIZE; in gst_ffmpegauddec_handle_frame() 704 memset (ffmpegdec->padded + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in gst_ffmpegauddec_handle_frame()
|