Mercurial > mplayer.hg
changeset 12034:90315c910b26
Raw audio and video are always keyframes
author | ranma |
---|---|
date | Wed, 17 Mar 2004 03:53:02 +0000 |
parents | 3dd75c52bf38 |
children | b3512c7b26ce |
files | libmpdemux/tv.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }