[FFmpeg-cvslog] rtpdec_xiph: fix function return type

Mans Rullgard git at videolan.org
Sat Oct 13 15:48:56 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Oct 11 21:59:12 2012 +0100| [0a7005bebd23ade7bb852bce0401af1a8fdbb723] | committer: Mans Rullgard

rtpdec_xiph: fix function return type

parse_packed_headers() returns either zero or a negative error code
so its return type must be signed.

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

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

diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c
index dc739ee..38f12bb 100644
--- a/libavformat/rtpdec_xiph.c
+++ b/libavformat/rtpdec_xiph.c
@@ -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)



More information about the ffmpeg-cvslog mailing list