[FFmpeg-devel] [PATCH] avformat: avisynth demuxer rewrite

Michael Niedermayer michaelni at gmx.at
Tue Oct 9 00:21:54 CEST 2012

On Mon, Oct 08, 2012 at 03:18:35PM -0400, d s wrote:
> On Sun, Oct 7, 2012 at 6:39 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Tue, Oct 02, 2012 at 07:51:37PM -0400, d s wrote:
> >> On Mon, Sep 24, 2012 at 12:21 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > I am the wisest man alive, for I know one thing, and that is that I know
> > nothing. -- Socrates
> I will make the changes you suggest.
> One thing I noticed when reviewing my code though was that
> avisynth_read_packet reads video faster than it does audio. This
> probably means the audio is not being kept in sync and needs to be
> fixed. On this subject though, currently the code returns EOF when
> either the audio or video end is reached (probably video). How should
> I handle uneven stream lengths? Is it OK to return an empty packet?

when you have a audio packet but no video packet then you return a
audio packet instead of a video one, same if you have a audio packet
but no video ...

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- 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/20121009/866450ee/attachment.asc>

More information about the ffmpeg-devel mailing list