|
|
|
@@ -73,6 +73,7 @@ void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc) |
|
|
|
if (bsfc->filter->close) |
|
|
|
bsfc->filter->close(bsfc); |
|
|
|
av_freep(&bsfc->priv_data); |
|
|
|
av_freep(&bsfc->args); |
|
|
|
av_parser_close(bsfc->parser); |
|
|
|
av_free(bsfc); |
|
|
|
} |
|
|
|
@@ -84,6 +85,6 @@ int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, |
|
|
|
{ |
|
|
|
*poutbuf = (uint8_t *)buf; |
|
|
|
*poutbuf_size = buf_size; |
|
|
|
return bsfc->filter->filter(bsfc, avctx, args, poutbuf, poutbuf_size, |
|
|
|
buf, buf_size, keyframe); |
|
|
|
return bsfc->filter->filter(bsfc, avctx, args ? args : bsfc->args, |
|
|
|
poutbuf, poutbuf_size, buf, buf_size, keyframe); |
|
|
|
} |