On Fri, Sep 25, 2009 at 4:03 AM, Jean-Daniel Dupas <[email protected]>wrote:
> Hello, > > When I perform a seek, I have to decode all frames from the previous key > frame to avoid artifacts. Is there a way in avformat to detect that a packet > is discardable and may be ignored (mkv and mpeg4/mov formats provide this > flag). > It may significantly reduce seek time for some file with large time > interval between key frames. > > Please call void avcodec_flush_buffers(AVCodecContext *avctx) after you successfully perform seeking -- ----------------------------------------------------------------------------------------- My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2 Inspired by http://www.nextplayer.net. Your potential. Our passion. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
