[MPlayer-dev-eng] [PATCH] demux_ts.c - obvious gcc warning fix

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Thu Apr 7 23:12:57 CEST 2005


Hi.

This fixes the following warnings:
demux_ts.c:1887: warning: no return statement in function returning non-void
demux_ts.c:1913: warning: no return statement in function returning non-void

Since these functions are static and their return value is not
assigned anywhere, I think the fix is obvious and I'll commit
it by tomorrow evening.

-- 
MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/
"I am Grey. I stand between the candle and the star. We are Grey.
 We stand between the darkness ... and the light."
        -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
-------------- next part --------------
--- MPlayer-20050407/libmpdemux/demux_ts.c.warn	2005-04-07 22:07:53.000000000 +0200
+++ MPlayer-20050407/libmpdemux/demux_ts.c	2005-04-07 22:47:41.000000000 +0200
@@ -1862,7 +1862,7 @@
 	return len;
 }
 
-static int parse_mp4_object_descriptor(pmt_t *pmt, uint8_t *buf, int len, void *elem)
+static void parse_mp4_object_descriptor(pmt_t *pmt, uint8_t *buf, int len, void *elem)
 {
 	int i, j = 0, id;
 	
@@ -1887,7 +1887,7 @@
 }
 
 
-static int parse_mp4_iod(pmt_t *pmt, uint8_t *buf, int len, void *elem)
+static void parse_mp4_iod(pmt_t *pmt, uint8_t *buf, int len, void *elem)
 {
 	int i, j = 0;
 	mp4_od_t *iod = &(pmt->iod);


More information about the MPlayer-dev-eng mailing list