projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e103117
)
segfault fix by (Giancarlo Formicuccia <ilsensine at inwind dot it>)
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Jul 2003 21:09:06 +0000
(21:09 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Jul 2003 21:09:06 +0000
(21:09 +0000)
Originally committed as revision 2003 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index d8cbef53311025f1c5e61a379291ab60afdaaf3e..8b82b9794b6f223b2206e6947767c3827486a5e1 100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-2237,6
+2237,10
@@
static int http_prepare_data(HTTPContext *c)
if (c->is_packetized) {
c->packet_stream_index = pkt.stream_index;
ctx = c->rtp_ctx[c->packet_stream_index];
+ if(!ctx) {
+ av_free_packet(&pkt);
+ return -1;
+ }
codec = &ctx->streams[0]->codec;
/* only one stream per RTP connection */
pkt.stream_index = 0;