[FFmpeg-cvslog] sol: use AV_RL32 instead of raw pointer cast
Mans Rullgard
git at videolan.org
Sun Nov 27 00:39:12 CET 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat Nov 26 00:22:28 2011 +0000| [3d1af11df49c9bd27f6677ec2fa327b379144e11] | committer: Mans Rullgard
sol: use AV_RL32 instead of raw pointer cast
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d1af11df49c9bd27f6677ec2fa327b379144e11
---
libavformat/sol.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libavformat/sol.c b/libavformat/sol.c
index 55accc2..0fd4259 100644
--- a/libavformat/sol.c
+++ b/libavformat/sol.c
@@ -23,7 +23,7 @@
* Based on documents from Game Audio Player and own research
*/
-#include "libavutil/bswap.h"
+#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "pcm.h"
@@ -33,8 +33,7 @@
static int sol_probe(AVProbeData *p)
{
/* check file header */
- uint16_t magic;
- magic=av_le2ne16(*((uint16_t*)p->buf));
+ uint16_t magic = AV_RL32(p->buf);
if ((magic == 0x0B8D || magic == 0x0C0D || magic == 0x0C8D) &&
p->buf[2] == 'S' && p->buf[3] == 'O' &&
p->buf[4] == 'L' && p->buf[5] == 0)
More information about the ffmpeg-cvslog
mailing list