summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cunningham <chcunningham@chromium.org>2019-02-06 17:13:03 -0800
committerJames Almer <jamrial@gmail.com>2019-06-25 14:09:40 -0300
commitbb11584924d6190a9028cbb319891028f44856a9 (patch)
treecc2dcb1fa61846007a0dc324d120e9651cafa088
parent75d99e9d8027c741ce9ea1847128040e56c485c5 (diff)
avformat/oggparseogm: sync avctx w/ codecpar
Codec information may change while reading ogg packets. Update the stream's internal avctx to match.
-rw-r--r--libavformat/oggparseogm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparseogm.c b/libavformat/oggparseogm.c
index a07453760b..b07a5d55ba 100644
--- a/libavformat/oggparseogm.c
+++ b/libavformat/oggparseogm.c
@@ -114,6 +114,9 @@ ogm_header(AVFormatContext *s, int idx)
bytestream2_get_buffer(&p, st->codecpar->extradata, st->codecpar->extradata_size);
}
}
+
+ // Update internal avctx with changes to codecpar above.
+ st->internal->need_context_update = 1;
} else if (bytestream2_peek_byte(&p) == 3) {
bytestream2_skip(&p, 7);
if (bytestream2_get_bytes_left(&p) > 1)