mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
add a close function to bitstream filter
Originally committed as revision 10288 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5f2cbb53b4
commit
0a1a0a805a
@ -33,8 +33,8 @@
|
||||
#define AV_STRINGIFY(s) AV_TOSTRING(s)
|
||||
#define AV_TOSTRING(s) #s
|
||||
|
||||
#define LIBAVCODEC_VERSION_INT ((51<<16)+(42<<8)+0)
|
||||
#define LIBAVCODEC_VERSION 51.42.0
|
||||
#define LIBAVCODEC_VERSION_INT ((51<<16)+(43<<8)+0)
|
||||
#define LIBAVCODEC_VERSION 51.43.0
|
||||
#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
|
||||
|
||||
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
|
||||
@ -2798,6 +2798,7 @@ typedef struct AVBitStreamFilter {
|
||||
AVCodecContext *avctx, const char *args,
|
||||
uint8_t **poutbuf, int *poutbuf_size,
|
||||
const uint8_t *buf, int buf_size, int keyframe);
|
||||
void (*close)(AVBitStreamFilterContext *bsfc);
|
||||
struct AVBitStreamFilter *next;
|
||||
} AVBitStreamFilter;
|
||||
|
||||
|
@ -43,6 +43,8 @@ AVBitStreamFilterContext *av_bitstream_filter_init(const char *name){
|
||||
}
|
||||
|
||||
void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc){
|
||||
if(bsfc->filter->close)
|
||||
bsfc->filter->close(bsfc);
|
||||
av_freep(&bsfc->priv_data);
|
||||
av_parser_close(bsfc->parser);
|
||||
av_free(bsfc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user