Commit 87c113f4 authored by Paul B Mahol's avatar Paul B Mahol

wv: use right function to read block_samples

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent c4338237
...@@ -341,7 +341,7 @@ static int wv_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -341,7 +341,7 @@ static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
pkt->stream_index = 0; pkt->stream_index = 0;
wc->block_parsed = 1; wc->block_parsed = 1;
pkt->pts = wc->soff; pkt->pts = wc->soff;
block_samples = AV_RN32(wc->extra); block_samples = AV_RL32(wc->extra);
if (block_samples > INT32_MAX) if (block_samples > INT32_MAX)
av_log(s, AV_LOG_WARNING, av_log(s, AV_LOG_WARNING,
"Too many samples in block: %"PRIu32"\n", block_samples); "Too many samples in block: %"PRIu32"\n", block_samples);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment