[FFmpeg-cvslog] r20169 - trunk/libavformat/raw.c
diego
subversion
Mon Oct 5 11:19:42 CEST 2009
Author: diego
Date: Mon Oct 5 11:19:42 2009
New Revision: 20169
Log:
Fix pcm_read_seek () when the position it calculates is greater than 2 GB.
pcm_read_seek() puts the return value of url_fseek() in an int and then
compares < 0 to see if an error occurred; if the position is greater
than 2 GB, the 32-bit signed int result will be < 0.
Change the type of ret to int64_t to avoid the wraparound.
patch by Daniel Verkamp, daniel drv nu
Modified:
trunk/libavformat/raw.c
Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c Mon Oct 5 10:38:39 2009 (r20168)
+++ trunk/libavformat/raw.c Mon Oct 5 11:19:42 2009 (r20169)
@@ -219,8 +219,8 @@ int pcm_read_seek(AVFormatContext *s,
int stream_index, int64_t timestamp, int flags)
{
AVStream *st;
- int block_align, byte_rate, ret;
- int64_t pos;
+ int block_align, byte_rate;
+ int64_t pos, ret;
st = s->streams[0];
More information about the ffmpeg-cvslog
mailing list