mirror of https://github.com/FFmpeg/FFmpeg.git
Fix Ticket #1617, revealing a regression I introduced in 8f3eebd
.
We need to make sure no stream is added in between Ogg context save and
restore operations (because it would likely lead to a mismatch between
ogg->nstreams and AVFormatContext->nb_streams after the restore op).
This is the reason the ogg->state check is added in ogg_new_stream().
Before this patch, checking for ogg->headers was preventing this:
ogg->headers is always set before any ogg save/restore (though, it was
also preventing from creating the stream when necessary).
release/1.0
parent
405ee405c9
commit
ea5bd7ea6f
2 changed files with 22 additions and 1 deletions
Loading…
Reference in new issue