# HG changeset patch # User ranma # Date 1079495582 0 # Node ID 90315c910b26528bb2f422ba91c6169f03c4a19f # Parent 3dd75c52bf381e3e166aded5b455ec02d38f775e Raw audio and video are always keyframes diff -r 3dd75c52bf38 -r 90315c910b26 libmpdemux/tv.c --- a/libmpdemux/tv.c Tue Mar 16 15:34:55 2004 +0000 +++ b/libmpdemux/tv.c Wed Mar 17 03:53:02 2004 +0000 @@ -103,6 +103,7 @@ len = tvh->functions->get_audio_framesize(tvh->priv); dp=new_demux_packet(len); + dp->flags|=1; /* Keyframe */ dp->pts=tvh->functions->grab_audio_frame(tvh->priv, dp->buffer,len); ds_add_packet(demux->audio,dp); } @@ -114,6 +115,7 @@ { len = tvh->functions->get_video_framesize(tvh->priv); dp=new_demux_packet(len); + dp->flags|=1; /* Keyframe */ dp->pts=tvh->functions->grab_video_frame(tvh->priv, dp->buffer, len); ds_add_packet(demux->video,dp); }