[FFmpeg-devel] [PATCH] ACT demuxer

Reimar Döffinger Reimar.Doeffinger
Sun Feb 24 20:06:21 CET 2008


On Sun, Feb 24, 2008 at 07:36:17PM +0100, Michael Niedermayer wrote:
> > +    if (st->codec->sample_rate == 4400) {
> > +        st->codec->frame_size=11;
> > +        av_set_pts_info(st, 64, 20, 1000);
> > +    }else if (st->codec->sample_rate == 8000) {
> > +        st->codec->frame_size=10;
> > +        av_set_pts_info(st, 64, 10, 1000);
> > +    }else
> > +        return AVERROR_NOFMT;
> 
> frame_size is set to invalid values, correct is 80 and 88 IIRC

Sorry for being lazy, but what is frame_size supposed to indicate
anyway?

> and
> av_set_pts_info(st, 64, st->codec->frame_size, st->codec->sample_rate);
[...]
> > +    st->duration=(1000*(min*60+sec)+msec)/st->time_base.num;

This brings up another thing... I do not mind much, but is this better
like this or would it be better to always do
av_set_pts_info(st, 64, 1, 1000);

and instead set pkt->duration to either 10 or 20?

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list