[FFmpeg-cvslog] wv: use right function to read block_samples
Paul B Mahol
git at videolan.org
Mon Nov 12 16:52:36 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Nov 12 15:48:54 2012 +0000| [87c113f4b3b8d2e243cc2e3afec4d2f7d38012d8] | committer: Paul B Mahol
wv: use right function to read block_samples
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87c113f4b3b8d2e243cc2e3afec4d2f7d38012d8
---
libavformat/wv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/wv.c b/libavformat/wv.c
index cf410c0..97a6c1f 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);
More information about the ffmpeg-cvslog
mailing list