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>
Sat, 13 Oct 2012 03:36:41 +0000 (05:36 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver.c

index 955c326..4dd0ae2 100644 (file)
@@ -3825,7 +3825,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) {