diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/noise_bsf.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
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, }; |
