ffserver: fix return value of add_codec()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 13 Oct 2012 03:36:41 +0000 (05:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 7 Apr 2013 14:38:29 +0000 (16:38 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ff814c75a3f52d264e6c6092736f6db2fb72a61c)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver.c

index aebe651..e7fdfbe 100644 (file)
@@ -3806,7 +3806,7 @@ static void add_codec(FFStream *stream, AVCodecContext *av)
     AVStream *st;
 
     if(stream->nb_streams >= FF_ARRAY_ELEMS(stream->streams))
-        return NULL;
+        return;
 
     /* compute default parameters */
     switch(av->codec_type) {