[FFmpeg-devel] [PATCH] rl2 format demuxer
Sascha Sommer
saschasommer
Fri Mar 21 15:27:22 CET 2008
Hi,
> > > What about adding seeking support? :)
> >
> > What a surprising question ;)
>
> Well iam just trying to squeeze as much usefull code out of the students as
> possible before googles deadline, can i maybe convince you to do another
> 2 or 3 qualification tasks or maybe write a gcc or firefox replacement? ;)
>
Let's see if the other student finishes his vivo demuxer. If not I might
finish the one that I started already.
Btw. I found another qualification task:
Writting a demuxer/decoder for the capture files by
http://www.sodan.org/~penny/vncrec/
I wrote some hackish tool based on ffmpeg to handle some of them already.
It can be found at http://sourceforge.net/projects/vnc2ffvhuff/
> > +/**
> > + * read rl2 header data and setup the avstreams
> > + * @param s demuxer context
> > + * @param ap format parameters
> > + * @return 0 on success, AVERROR otherwise
> > + */
> > +static int rl2_read_header(AVFormatContext *s,
> > + AVFormatParameters *ap)
> > +{
>
> Functions which are called just once in a demuxers life should be marked
> as av_cold
>
>
> [...]
>
> > + av_rescale(timestamp,
> > st2->time_base.den*(int64_t)st->time_base.num, +
> > st->time_base.den * (int64_t)st2->time_base.num),
>
> see av_rescale_q()
>
> patch ok except above
>
Fixed and commited.
Regards
Sascha
More information about the ffmpeg-devel
mailing list