Mercurial > mplayer.hg
comparison libmpdemux/ebml.c @ 36453:e626f90df47e
Switch from deprecated intfloat_readwrite.h to intfloat.h
author | reimar |
---|---|
date | Tue, 17 Dec 2013 18:46:48 +0000 |
parents | 9175a9a22051 |
children |
comparison
equal
deleted
inserted
replaced
36452:ead03d1b8ea2 | 36453:e626f90df47e |
---|---|
26 | 26 |
27 #include "stream/stream.h" | 27 #include "stream/stream.h" |
28 #include "ebml.h" | 28 #include "ebml.h" |
29 #include "libavutil/common.h" | 29 #include "libavutil/common.h" |
30 #include "mpbswap.h" | 30 #include "mpbswap.h" |
31 #include "libavutil/intfloat_readwrite.h" | 31 #include "libavutil/intfloat.h" |
32 | 32 |
33 | 33 |
34 #ifndef SIZE_MAX | 34 #ifndef SIZE_MAX |
35 #define SIZE_MAX ((size_t)-1) | 35 #define SIZE_MAX ((size_t)-1) |
36 #endif | 36 #endif |
183 int l; | 183 int l; |
184 | 184 |
185 len = ebml_read_length(s, &l); | 185 len = ebml_read_length(s, &l); |
186 switch (len) { | 186 switch (len) { |
187 case 4: | 187 case 4: |
188 value = av_int2flt(stream_read_dword(s)); | 188 value = av_int2float(stream_read_dword(s)); |
189 break; | 189 break; |
190 | 190 |
191 case 8: | 191 case 8: |
192 value = av_int2dbl(stream_read_qword(s)); | 192 value = av_int2double(stream_read_qword(s)); |
193 break; | 193 break; |
194 | 194 |
195 default: | 195 default: |
196 return EBML_FLOAT_INVALID; | 196 return EBML_FLOAT_INVALID; |
197 } | 197 } |