[FFmpeg-devel] [PATCH 04/28] asf hacks

Joakim Plate elupus
Thu Jul 1 14:26:50 CEST 2010


Michael Niedermayer <michaelni <at> gmx.at> writes:

> >  
> > +    if (pts == 0) {
> 
> > +      // this is a hack since av_gen_search searches the entire file in 
this 
case
> 
> why does it do that?

I think it was due to not being able to find a pts that was smaller
than that value. But this was very long ago so i'm not sure it is
valid anymore.

> 
> > +
> >      if (s->packet_size <= 0)
> >          return -1;
> >  
> > +    if (st->codec->codec_type != CODEC_TYPE_VIDEO)
> > +        return -1;
> > +
> 
> not ok, but what where you trying to fix with this?

I think this was discussed in some thread way back actually. I'll see
if i can find it. I think it had something todo with timestamps only
being good on the video stream. But i really don't remember.







More information about the ffmpeg-devel mailing list