Commit 069cb27b authored by michaelni's avatar michaelni

segfault fix by (Giancarlo Formicuccia <ilsensine at inwind dot it>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2003 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0ac9b1fe
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment