mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1685: Cross build RTC with FFmpeg
This commit is contained in:
parent
1c75a270b3
commit
1e9de0e191
267 changed files with 12603 additions and 1451 deletions
13
trunk/3rdparty/ffmpeg-4-fit/libavcodec/bsf.c
vendored
13
trunk/3rdparty/ffmpeg-4-fit/libavcodec/bsf.c
vendored
|
@ -47,7 +47,8 @@ void av_bsf_free(AVBSFContext **pctx)
|
|||
|
||||
av_opt_free(ctx);
|
||||
|
||||
av_packet_free(&ctx->internal->buffer_pkt);
|
||||
if (ctx->internal)
|
||||
av_packet_free(&ctx->internal->buffer_pkt);
|
||||
av_freep(&ctx->internal);
|
||||
av_freep(&ctx->priv_data);
|
||||
|
||||
|
@ -350,15 +351,6 @@ static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void bsf_list_flush(AVBSFContext *bsf)
|
||||
{
|
||||
BSFListContext *lst = bsf->priv_data;
|
||||
|
||||
for (int i = 0; i < lst->nb_bsfs; i++)
|
||||
av_bsf_flush(lst->bsfs[i]);
|
||||
lst->idx = lst->flushed_idx = 0;
|
||||
}
|
||||
|
||||
static void bsf_list_close(AVBSFContext *bsf)
|
||||
{
|
||||
BSFListContext *lst = bsf->priv_data;
|
||||
|
@ -407,7 +399,6 @@ const AVBitStreamFilter ff_list_bsf = {
|
|||
.priv_class = &bsf_list_class,
|
||||
.init = bsf_list_init,
|
||||
.filter = bsf_list_filter,
|
||||
.flush = bsf_list_flush,
|
||||
.close = bsf_list_close,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue