summaryrefslogtreecommitdiff
path: root/libavformat/segment.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r--libavformat/segment.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 7c171b6fa4..2b024fd373 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -991,10 +991,10 @@ static int seg_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt)
if (oc->oformat->check_bitstream) {
int ret = oc->oformat->check_bitstream(oc, 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;
+ FFStream *const sti = ffstream( s->streams[pkt->stream_index]);
+ FFStream *const osti = ffstream(oc->streams[pkt->stream_index]);
+ sti->bsfc = osti->bsfc;
+ osti->bsfc = NULL;
}
return ret;
}