[FFmpeg-cvslog] avformat/omadec: Use 64bit for ret to avoid overflow

Michael Niedermayer git at videolan.org
Sat Mar 14 14:41:07 CET 2015


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Fri Feb 20 21:01:54 2015 +0100| [2bb09b714ab6978d88de33eab601ef2b315f92b4] | committer: Michael Niedermayer

avformat/omadec: Use 64bit for ret to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 0f55bc29d41585d110b126cb4ed4b395fd46d7ac)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2bb09b714ab6978d88de33eab601ef2b315f92b4
---

 libavformat/omadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 3ea2ec1..afd483c 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -462,7 +462,7 @@ static int oma_read_seek(struct AVFormatContext *s,
                          int stream_index, int64_t timestamp, int flags)
 {
     OMAContext *oc = s->priv_data;
-    int err = ff_pcm_read_seek(s, stream_index, timestamp, flags);
+    int64_t err = ff_pcm_read_seek(s, stream_index, timestamp, flags);
 
     if (!oc->encrypted)
         return err;



More information about the ffmpeg-cvslog mailing list