[FFmpeg-cvslog] r13552 - trunk/ffserver.c
Michael Niedermayer
michaelni
Fri May 30 16:56:55 CEST 2008
On Fri, May 30, 2008 at 04:32:58AM +0200, bcoudurier wrote:
> Author: bcoudurier
> Date: Fri May 30 04:32:58 2008
> New Revision: 13552
>
> Log:
> fix got_key_frame when stream is audio
>
> Modified:
> trunk/ffserver.c
>
> Modified: trunk/ffserver.c
> ==============================================================================
> --- trunk/ffserver.c (original)
> +++ trunk/ffserver.c Fri May 30 04:32:58 2008
> @@ -2099,10 +2099,11 @@ static int http_prepare_data(HTTPContext
> }
> for(i=0;i<c->stream->nb_streams;i++) {
> if (c->feed_streams[i] == pkt.stream_index) {
> + AVStream *st = c->fmt_in->streams[source_index];
> pkt.stream_index = i;
> - if (pkt.flags & PKT_FLAG_KEY &&
> - c->fmt_in->streams[source_index]->codec->codec_type
> - == CODEC_TYPE_VIDEO)
> + if (st->codec->codec_type == CODEC_TYPE_AUDIO ||
> + (st->codec->codec_type == CODEC_TYPE_VIDEO &&
> + pkt.flags & PKT_FLAG_KEY))
audio codecs should have PKT_FLAG_KEY set.
more precissely
if(is_intra_only(st->codec))
pkt->flags |= PKT_FLAG_KEY;
in compute_pkt_fields() should set it
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080530/2b3d6623/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list