[FFmpeg-devel] [RFC] possible API for opening external demuxer references
Reimar Döffinger
Reimar.Doeffinger
Wed Feb 27 20:27:56 CET 2008
On Wed, Feb 27, 2008 at 08:01:58PM +0100, Gabriel Fort? wrote:
> the reading part is IMO even dirtier, as I'm forced to keep the current
> pts/dts values for every stream, and find out before each
> av_read_frame() which AVFormatContext I should use based on expected values.
> ie. if aux's DTS <= main's DTS, then read from aux.
Um, why don't you just buffer one AVPacket for each AVFormatContext and
always return the one with the lower PTS in your read wrapper (and fill
the empty buffer with a new packet)?
More information about the ffmpeg-devel
mailing list