Revision 180b7026

View differences:

ffserver.c
2101 2101
                        if (c->feed_streams[i] == pkt.stream_index) {
2102 2102
                            AVStream *st = c->fmt_in->streams[source_index];
2103 2103
                            pkt.stream_index = i;
2104
                            if (st->codec->codec_type == CODEC_TYPE_AUDIO ||
2105
                                (st->codec->codec_type == CODEC_TYPE_VIDEO &&
2106
                                 pkt.flags & PKT_FLAG_KEY))
2104
                            if (pkt.flags & PKT_FLAG_KEY &&
2105
                                (st->codec->codec_type == CODEC_TYPE_VIDEO ||
2106
                                 c->stream->nb_streams == 1))
2107 2107
                                c->got_key_frame = 1;
2108 2108
                            if (!c->stream->send_on_key || c->got_key_frame)
2109 2109
                                goto send_it;

Also available in: Unified diff