rtpdec_xiph: fix function return type
authorMans Rullgard <mans@mansr.com>
Thu, 11 Oct 2012 20:59:12 +0000 (21:59 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 12 Oct 2012 21:21:10 +0000 (22:21 +0100)
parse_packed_headers() returns either zero or a negative error code
so its return type must be signed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/rtpdec_xiph.c

index dc739ee..38f12bb 100644 (file)
@@ -243,7 +243,7 @@ static int get_base128(const uint8_t ** buf, const uint8_t * buf_end)
 /**
  * Based off parse_packed_headers in Vorbis RTP
  */
-static unsigned int
+static int
 parse_packed_headers(const uint8_t * packed_headers,
                      const uint8_t * packed_headers_end,
                      AVCodecContext * codec, PayloadContext * xiph_data)