mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
segfault fix by (Giancarlo Formicuccia <ilsensine at inwind dot it>)
Originally committed as revision 2003 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e103117177
commit
1b52b6bd6b
@ -2237,6 +2237,10 @@ static int http_prepare_data(HTTPContext *c)
|
|||||||
if (c->is_packetized) {
|
if (c->is_packetized) {
|
||||||
c->packet_stream_index = pkt.stream_index;
|
c->packet_stream_index = pkt.stream_index;
|
||||||
ctx = c->rtp_ctx[c->packet_stream_index];
|
ctx = c->rtp_ctx[c->packet_stream_index];
|
||||||
|
if(!ctx) {
|
||||||
|
av_free_packet(&pkt);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
codec = &ctx->streams[0]->codec;
|
codec = &ctx->streams[0]->codec;
|
||||||
/* only one stream per RTP connection */
|
/* only one stream per RTP connection */
|
||||||
pkt.stream_index = 0;
|
pkt.stream_index = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user