aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wv.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-12 15:48:54 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-12 15:50:04 +0000
commit87c113f4b3b8d2e243cc2e3afec4d2f7d38012d8 (patch)
tree73e2ff5715ce2ad65628c2ce8dd7813227c84579 /libavformat/wv.c
parentc433823750bf096187e70c22822431a7c0bb4202 (diff)
downloadffmpeg-87c113f4b3b8d2e243cc2e3afec4d2f7d38012d8.tar.gz
wv: use right function to read block_samples
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r--libavformat/wv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c
index cf410c0179..97a6c1f2e8 100644
--- a/libavformat/wv.c
+++ b/libavformat/wv.c
@@ -341,7 +341,7 @@ static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->stream_index = 0;
wc->block_parsed = 1;
pkt->pts = wc->soff;
- block_samples = AV_RN32(wc->extra);
+ block_samples = AV_RL32(wc->extra);
if (block_samples > INT32_MAX)
av_log(s, AV_LOG_WARNING,
"Too many samples in block: %"PRIu32"\n", block_samples);