mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avformat/oggparseogm: sync avctx w/ codecpar
Codec information may change while reading ogg packets. Update the stream's internal avctx to match.
This commit is contained in:
parent
75d99e9d80
commit
bb11584924
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user