]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
Remove size_t cast in setting s->priv_data directly to the (integer) file
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Mar 2009 13:57:09 +0000 (13:57 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 3 Mar 2009 13:57:09 +0000 (13:57 +0000)
commit15e1ec5850dba2fb3c30c73287cae6bb9b2c57c0
treee8d3b16561ffb5a6a85bd84d448fe5b70ebf0de8
parent3e6a9e1fb04596c6c53ac23f0abfdbcb3256313a
Remove size_t cast in setting s->priv_data directly to the (integer) file
descriptor returned by open(). This removes some dubious doublecasts such
as priv_data = (void *) (size_t) some_integer, and is always safe on systems
we care about because sizeof(int)<=sizeof(void*). See comments from Mans and
Michael in "[RFC] rtsp.c EOF support" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17768 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavformat/file.c