[FFmpeg-devel] [PATCH] libavutil: cast truncated values to uint32_t
Michael Niedermayer
michaelni at gmx.at
Tue Aug 27 04:09:58 CEST 2013
On Mon, Aug 26, 2013 at 10:44:08PM +0200, Alfred E. Heggestad wrote:
> common.h | 4 ++--
> rational.h | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
> 62a4072f9a04e905abe285fc98ecb7baeacad63a 0001-libavutil-cast-truncated-values-to-uint32_t.patch
> From fda5dcc3784be312a8242512a8df1e3dd197df77 Mon Sep 17 00:00:00 2001
> From: "Alfred E. Heggestad" <aeh at db.org>
> Date: Mon, 26 Aug 2013 22:31:43 +0200
> Subject: [PATCH] libavutil: cast truncated values to uint32_t
>
> programs using ffmpeg that are compiled with -Wshorten-64-to-32
> gives a warning when using header files common.h and rational.h
>
> cast 64-bit truncated values to (uint32_t) to avoid the warning
compilers dont print warnings for problems in system headers, the
libavutil headers are treated as such when installed.
can you elaborate on why this compiler "feature" doesnt work in
your case ?
fixing all warnings that any compiler with any option wth any header
could generate is not a trivial task and with some predantic warnings
might even be impossible
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- 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/20130827/ca55a210/attachment.asc>
More information about the ffmpeg-devel
mailing list