lavf: update auto-bsf to new BSF API

This commit is contained in:
Rodger Combs 2016-04-20 01:15:35 -05:00
parent 150e5e13b1
commit af7e2734b9
No known key found for this signature in database
GPG key ID: E3E54DCDCD3CB843
4 changed files with 91 additions and 24 deletions

View file

@ -966,8 +966,10 @@ static int seg_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
if (ret == 1) {
AVStream *st = s->streams[pkt->stream_index];
AVStream *ost = oc->streams[pkt->stream_index];
st->internal->bsfc = ost->internal->bsfc;
ost->internal->bsfc = NULL;
st->internal->bsfcs = ost->internal->bsfcs;
st->internal->nb_bsfcs = ost->internal->nb_bsfcs;
ost->internal->bsfcs = NULL;
ost->internal->nb_bsfcs = 0;
}
return ret;
}