[FFmpeg-cvslog] cafenc: replace deprecated av_dbl2int()

Paul B Mahol git at videolan.org
Mon Jan 23 17:23:43 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 23 17:18:13 2012 +0100| [a6ef7b3a773ea79e725f9fe60b718f6db3bc83a6] | committer: Carl Eugen Hoyos

cafenc: replace deprecated av_dbl2int()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6ef7b3a773ea79e725f9fe60b718f6db3bc83a6
---

 libavformat/cafenc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c
index 699c67d..c347056 100644
--- a/libavformat/cafenc.c
+++ b/libavformat/cafenc.c
@@ -24,7 +24,7 @@
 #include "riff.h"
 #include "isom.h"
 #include "avio_internal.h"
-#include "libavutil/intfloat_readwrite.h"
+#include "libavutil/intfloat.h"
 
 typedef struct {
     int64_t data;
@@ -144,7 +144,7 @@ static int caf_write_header(AVFormatContext *s)
 
     ffio_wfourcc(pb, "desc");                         //< Audio Description chunk
     avio_wb64(pb, 32);                                //< mChunkSize
-    avio_wb64(pb, av_dbl2int(enc->sample_rate));      //< mSampleRate
+    avio_wb64(pb, av_double2int(enc->sample_rate));   //< mSampleRate
     avio_wl32(pb, codec_tag);                         //< mFormatID
     avio_wb32(pb, codec_flags(enc->codec_id));        //< mFormatFlags
     avio_wb32(pb, enc->block_align);                  //< mBytesPerPacket



More information about the ffmpeg-cvslog mailing list