[FFmpeg-devel] [PATCH] pkt_pts reordering (original) (raw)
Michael Niedermayer michaelni
Mon Jan 10 19:00:23 CET 2011
- Previous message: [FFmpeg-devel] [PATCH] pkt_pts reordering
- Next message: [FFmpeg-devel] [PATCH] pkt_pts reordering
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Jan 10, 2011 at 05:57:55PM +0100, Luca Barbato wrote:
On 01/10/2011 05:29 PM, Jean-Daniel Dupas wrote: > > Le 10 janv. 2011 ? 17:13, Luca Barbato a ?crit : > >> On 01/10/2011 05:01 PM, Vladimir Pantelic wrote: >>> since the actual reordering of timestamps has shifted to pktpts, >>> we can use the existing reorderedopaque just as it is and maybe >>> convert it to void*... >> >> The union has the added bonus of being big enough to fit more than a >> void * alone. > > Don't rely on this, it may not be true on 64 bit plateforms.
You want to have at least 64bit so an union gives you that. Being able to store a pointer or a double safely is the key point. (e.g. 80bit float)
we can always store a double in int64_t, the amount of bits in mantisse and exponent fit in 64bit always even if a native double on a platform needs more bits
[...]
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110110/acaf5a38/attachment.pgp>
- Previous message: [FFmpeg-devel] [PATCH] pkt_pts reordering
- Next message: [FFmpeg-devel] [PATCH] pkt_pts reordering
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]