Revision 1b52b6bd ffserver.c

View differences:

ffserver.c
2237 2237
                        if (c->is_packetized) {
2238 2238
                            c->packet_stream_index = pkt.stream_index;
2239 2239
                            ctx = c->rtp_ctx[c->packet_stream_index];
2240
                            if(!ctx) {
2241
                              av_free_packet(&pkt);
2242
                              return -1;
2243
                            }
2240 2244
                            codec = &ctx->streams[0]->codec;
2241 2245
                            /* only one stream per RTP connection */
2242 2246
                            pkt.stream_index = 0;

Also available in: Unified diff