diff options
Diffstat (limited to 'ffmpeg/libavcodec/noise_bsf.c')
| -rw-r--r-- | ffmpeg/libavcodec/noise_bsf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ffmpeg/libavcodec/noise_bsf.c b/ffmpeg/libavcodec/noise_bsf.c index 763af79..4f609de 100644 --- a/ffmpeg/libavcodec/noise_bsf.c +++ b/ffmpeg/libavcodec/noise_bsf.c @@ -36,6 +36,8 @@ static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const ch return AVERROR(EINVAL); *poutbuf= av_malloc(buf_size + FF_INPUT_BUFFER_PADDING_SIZE); + if (!*poutbuf) + return AVERROR(ENOMEM); memcpy(*poutbuf, buf, buf_size + FF_INPUT_BUFFER_PADDING_SIZE); for(i=0; i<buf_size; i++){ @@ -47,7 +49,7 @@ static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const ch } AVBitStreamFilter ff_noise_bsf={ - "noise", - sizeof(int), - noise, + .name = "noise", + .priv_data_size = sizeof(int), + .filter = noise, }; |
