From 07a47ae2a3f7bcfea25828628e8b1df44dd5a1cd Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 25 Apr 2008 09:08:13 +0000 Subject: [PATCH] pts are unsigned according to specs, fix negative pts when 32bit pts are used Originally committed as revision 12949 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 134f402..6ebc415 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -280,7 +280,8 @@ static int flv_read_header(AVFormatContext *s, static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) { - int ret, i, type, size, pts, flags, is_audio, next, pos; + int ret, i, type, size, flags, is_audio, next, pos; + unsigned pts; AVStream *st = NULL; for(;;){ -- 2.7.4