From 8fbab7a6c84fd75de4f752b412cea8032604f75b Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sat, 2 Mar 2013 13:54:50 +0200 Subject: rtpdec: Initialize some variables to silence compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warnings are false positives, older gcc versions (such as 4.5) think the variables can be used uninitialized while they in practice can't, while newer (4.6) gets it right. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_vp8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpdec_vp8.c') diff --git a/libavformat/rtpdec_vp8.c b/libavformat/rtpdec_vp8.c index 3db61c143e..fc86ac1dd3 100644 --- a/libavformat/rtpdec_vp8.c +++ b/libavformat/rtpdec_vp8.c @@ -82,7 +82,7 @@ static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8, keyidx_present = 0; int pictureid = -1, pictureid_mask = 0; int returned_old_frame = 0; - uint32_t old_timestamp; + uint32_t old_timestamp = 0; if (!buf) { if (vp8->data) { -- cgit v1.2.3