Commit bb115849 authored by Chris Cunningham's avatar Chris Cunningham Committed by James Almer

avformat/oggparseogm: sync avctx w/ codecpar

Codec information may change while reading ogg packets. Update the
stream's internal avctx to match.
parent 75d99e9d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment