Changeset ea5bd7ea in ffmpeg

Timestamp:
Sep 21, 2012, 10:40:51 PM (12 years ago)
Author:
Clément Bœsch <ubitux@gmail.com>
Branches:
master
Children:
1b1b902e
Parents:
405ee405
git-author:
Clément Bœsch <ubitux@gmail.com> (09/16/12 20:24:11)
git-committer:
Clément Bœsch <ubitux@gmail.com> (09/21/12 22:40:51)
Message:

lavf/oggdec: check for begin-of-stream flag in case of chained streams.

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).

(No files)

Note: See TracChangeset for help on using the changeset viewer.