Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Reynaldo H. Verdejo Pinochet authored on 2015/03/09 02:15:50... | ... |
@@ -2837,9 +2837,12 @@ static int prepare_sdp_description(FFServerStream *stream, uint8_t **pbuffer, |
2837 | 2837 |
snprintf(avc->filename, 1024, "rtp://0.0.0.0"); |
2838 | 2838 |
} |
2839 | 2839 |
|
2840 |
- if (!(avc->streams = av_malloc_array(avc->nb_streams, sizeof(*avc->streams)))) |
|
2840 |
+ avc->streams = av_malloc_array(avc->nb_streams, sizeof(*avc->streams)); |
|
2841 |
+ if (!avc->streams) |
|
2841 | 2842 |
goto sdp_done; |
2842 |
- if (!(avs = av_malloc_array(avc->nb_streams, sizeof(*avs)))) |
|
2843 |
+ |
|
2844 |
+ avs = av_malloc_array(avc->nb_streams, sizeof(*avs)); |
|
2845 |
+ if (!avs) |
|
2843 | 2846 |
goto sdp_done; |
2844 | 2847 |
|
2845 | 2848 |
for(i = 0; i < stream->nb_streams; i++) { |