Browse Source

sol: use AV_RL32 instead of raw pointer cast

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n0.9
Mans Rullgard 13 years ago
parent
commit
3d1af11df4
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavformat/sol.c

+ 2
- 3
libavformat/sol.c View File

@@ -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)


Loading…
Cancel
Save