Browse Source

ffserver: move assignment outside condition eval

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
tags/n2.7
Reynaldo H. Verdejo Pinochet 10 years ago
parent
commit
0002a22e0e
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      ffserver.c

+ 5
- 2
ffserver.c View File

@@ -2837,9 +2837,12 @@ static int prepare_sdp_description(FFServerStream *stream, uint8_t **pbuffer,
snprintf(avc->filename, 1024, "rtp://0.0.0.0");
}

if (!(avc->streams = av_malloc_array(avc->nb_streams, sizeof(*avc->streams))))
avc->streams = av_malloc_array(avc->nb_streams, sizeof(*avc->streams));
if (!avc->streams)
goto sdp_done;
if (!(avs = av_malloc_array(avc->nb_streams, sizeof(*avs))))

avs = av_malloc_array(avc->nb_streams, sizeof(*avs));
if (!avs)
goto sdp_done;

for(i = 0; i < stream->nb_streams; i++) {


Loading…
Cancel
Save