[FFmpeg-devel] [PATCH] rl2 format demuxer

Sascha Sommer saschasommer
Sun Mar 16 12:04:56 CET 2008


Hi,

On Sonntag, 16. M?rz 2008, Michael Niedermayer wrote:
> On Sat, Mar 15, 2008 at 10:08:53PM +0100, Sascha Sommer wrote:
> > Hi,
> >
> > attached patch adds support for the rl2 format as described on
> > http://wiki.multimedia.cx/index.php?title=RL2
> > It depends on the rl2 decoder patch that I sent earlier
>
> [...]
>
> > +typedef struct {
> > +    int stream_index; ///< audio or video stream index
> > +    uint32_t offset;  ///< chunk offset relative to the file start
> > +    uint32_t size;    ///< size of the chunk
> > +    int64_t pts;      ///< presentation timestamp
> > +} rl2_sample_t;
>
> You should use  AVStream.index_entries / av_add_index_entry()
>

And then do

pos = url_ftell(s->pb);
and search in the read function in the index_entries if the stream at pos is a 
video or audio stream?



Regards

Sascha





More information about the ffmpeg-devel mailing list