demux_mkv: remove pointless 'long double' use

There was no remaining reason to use this type. The variables were
assigned values with plain double precision anyway.
This commit is contained in:
Uoti Urpala 2010-01-26 13:53:27 +02:00
parent 6e7531c4be
commit a07cfb35d3
3 changed files with 6 additions and 6 deletions

View File

@ -403,7 +403,7 @@ static int demux_mkv_read_info(demuxer_t *demuxer)
uint64_t length, l;
int i;
uint64_t tc_scale = 1000000;
long double duration = 0.;
double duration = 0;
length = ebml_read_length(s, NULL);
while (length > 0) {
@ -623,7 +623,7 @@ static int demux_mkv_read_trackaudio(demuxer_t *demuxer, mkv_track_t *track)
stream_t *s = demuxer->stream;
uint64_t len, length, l;
uint64_t num;
long double fnum;
double fnum;
int il;
track->a_sfreq = 8000.0;
@ -674,7 +674,7 @@ static int demux_mkv_read_trackvideo(demuxer_t *demuxer, mkv_track_t *track)
stream_t *s = demuxer->stream;
uint64_t len, length, l;
uint64_t num;
long double fnum;
double fnum;
int il;
len = length = ebml_read_length(s, &il);

View File

@ -182,9 +182,9 @@ int64_t ebml_read_int(stream_t *s, uint64_t *length)
/*
* Read the next element as a float.
*/
long double ebml_read_float(stream_t *s, uint64_t *length)
double ebml_read_float(stream_t *s, uint64_t *length)
{
long double value;
double value;
uint64_t len;
int l;

View File

@ -104,7 +104,7 @@ int64_t ebml_read_vlen_int (uint8_t *buffer, int *length);
uint64_t ebml_read_length (stream_t *s, int *length);
uint64_t ebml_read_uint (stream_t *s, uint64_t *length);
int64_t ebml_read_int (stream_t *s, uint64_t *length);
long double ebml_read_float (stream_t *s, uint64_t *length);
double ebml_read_float (stream_t *s, uint64_t *length);
char *ebml_read_ascii (stream_t *s, uint64_t *length);
char *ebml_read_utf8 (stream_t *s, uint64_t *length);
int ebml_read_skip (stream_t *s, uint64_t *length);