Mercurial > libavformat.hg
view caf.h @ 5263:4aefe095faed libavformat
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
author | diego |
---|---|
date | Mon, 05 Oct 2009 09:19:42 +0000 |
parents | bed5288e1fad |
children | 178de7695c6c |
line wrap: on
line source
/* * CAF common code * Copyright (c) 2007 Justin Ruggles * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file libavformat/caf.h * CAF common code */ #ifndef AVFORMAT_CAF_H #define AVFORMAT_CAF_H #include "riff.h" extern const AVCodecTag ff_codec_caf_tags[]; #endif /* AVFORMAT_CAF_H */