[FFmpeg-devel] [PATCH] Fix guess time_increment_bits error.

Michael Niedermayer michaelni
Wed Dec 9 15:07:34 CET 2009

On Wed, Dec 09, 2009 at 12:06:51PM +0800, Xwen.Kong wrote:
> Hi,all
>     While decoding mpeg4 stream in ffmpeg , the default time_increment_bits
> = 4, but
> in Xvid or ffmpeg , the default Framerate is 25 or higher, so the
> time_increment_bits needs 5 bits,
> so while decoding Xvid stream without file header ,it may display errors as
> follows:
>      [mpeg4 @ 0x8a47100]hmm, seems the headers are not complete, trying to
> guess time_increment_bits
>      [mpeg4 @ 0x8a47100]my guess is 1 bits ;)
> this guess is usually wrong, it's better to set  time_increment_bits value
> as 5 in default, this patch fixes this.

patch rejected
ive improved the guessing somewhat though, if thats not enough we need a
sample file that fails.

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091209/054aefce/attachment.pgp>

More information about the ffmpeg-devel mailing list