Changeset 8a9641a6 in ffmpeg
- Timestamp:
- Jan 15, 2015, 12:25:16 AM (10 years ago)
- Branches:
- master
- Children:
- 402fb555, c5eb725f
- Parents:
- 014b6b41
- git-author:
- Vittorio Giovara <vittorio.giovara@gmail.com> (12/18/14 19:26:56)
- git-committer:
- Vittorio Giovara <vittorio.giovara@gmail.com> (01/15/15 00:25:16)
- Location:
- libavcodec
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libavcodec/bitstream_filter.c
r014b6b41 r8a9641a6 48 48 AVBitStreamFilterContext *bsfc = 49 49 av_mallocz(sizeof(AVBitStreamFilterContext)); 50 if (!bsfc) 51 return NULL; 50 52 bsfc->filter = bsf; 51 bsfc->priv_data = 52 bsf->priv_data_size ? av_mallocz(bsf->priv_data_size) : NULL; 53 bsfc->priv_data = NULL; 54 if (bsf->priv_data_size) { 55 bsfc->priv_data = av_mallocz(bsf->priv_data_size); 56 if (!bsfc->priv_data) { 57 av_freep(&bsfc); 58 return NULL; 59 } 60 } 53 61 return bsfc; 54 62 } -
libavcodec/dump_extradata_bsf.c
r014b6b41 r8a9641a6 38 38 *poutbuf_size= size; 39 39 *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); 40 if (!*poutbuf) 41 return AVERROR(ENOMEM); 40 42 41 43 memcpy(*poutbuf, avctx->extradata, avctx->extradata_size); -
libavcodec/imx_dump_header_bsf.c
r014b6b41 r8a9641a6 44 44 45 45 *poutbuf = av_malloc(buf_size + 20 + FF_INPUT_BUFFER_PADDING_SIZE); 46 if (!*poutbuf) 47 return AVERROR(ENOMEM); 46 48 poutbufp = *poutbuf; 47 49 bytestream_put_buffer(&poutbufp, imx_header, 16); -
libavcodec/mjpega_dump_header_bsf.c
r014b6b41 r8a9641a6 46 46 *poutbuf_size = 0; 47 47 *poutbuf = av_malloc(buf_size + 44 + FF_INPUT_BUFFER_PADDING_SIZE); 48 if (!*poutbuf) 49 return AVERROR(ENOMEM); 48 50 poutbufp = *poutbuf; 49 51 bytestream_put_byte(&poutbufp, 0xff); -
libavcodec/movsub_bsf.c
r014b6b41 r8a9641a6 30 30 *poutbuf_size = buf_size + 2; 31 31 *poutbuf = av_malloc(*poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE); 32 if (!*poutbuf) 33 return AVERROR(ENOMEM); 32 34 AV_WB16(*poutbuf, buf_size); 33 35 memcpy(*poutbuf + 2, buf, buf_size); … … 47 49 *poutbuf_size = FFMIN(buf_size - 2, AV_RB16(buf)); 48 50 *poutbuf = av_malloc(*poutbuf_size + FF_INPUT_BUFFER_PADDING_SIZE); 51 if (!*poutbuf) 52 return AVERROR(ENOMEM); 49 53 memcpy(*poutbuf, buf + 2, *poutbuf_size); 50 54 return 1; -
libavcodec/noise_bsf.c
r014b6b41 r8a9641a6 34 34 35 35 *poutbuf= av_malloc(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); 36 36 if (!*poutbuf) 37 return AVERROR(ENOMEM); 37 38 memcpy(*poutbuf, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); 38 39 for(i=0; i<buf_size; i++){ -
libavcodec/parser.c
r014b6b41 r8a9641a6 194 194 *poutbuf_size = size; 195 195 *poutbuf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); 196 if (!*poutbuf) 197 return AVERROR(ENOMEM); 196 198 197 199 memcpy(*poutbuf, avctx->extradata, avctx->extradata_size);
Note:
See TracChangeset
for help on using the changeset viewer.