[FFmpeg-devel] [PATCH] avidec: Mark first frame as keyframe in case there are no keyframes.

Michael Niedermayer michaelni at gmx.at
Mon Mar 12 06:43:06 CET 2012


On Tue, Jan 31, 2012 at 09:49:53PM +0100, Michael Niedermayer wrote:
> On Tue, Jan 31, 2012 at 09:19:36AM +0100, Reimar Döffinger wrote:
> > On 30 Jan 2012, at 23:58, Michael Niedermayer <michaelni at gmx.at> wrote:
> > > This fixes seeking in filecopy.avi of Ticket504
> > 
> > This doesn't seem right to me to handle at demuxer level.
> > For example for an auto-generated index the demuxer will not even be able to do such a hack.
> > It seems more sensible for me for the seeking function to validate the index and have some fallback behaviour if it does not make sense.
> 
> well, that would make seeking O(n) while its O(log n) ATM, we at least
> have to validate during adding index entries
> 
> and iam not sure if doing this for non avi makes sense (cut mpg surely
> can start with non keyframes)

Are there still objections against the patch ?
Any volunteers to implement a different solution ?
I would prefer to commit some fix. Which fix doesnt really matter to
me ...


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120312/5b0ee64f/attachment.asc>


More information about the ffmpeg-devel mailing list