Raw audio and video are always keyframes
authorranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 17 Mar 2004 03:53:02 +0000 (03:53 +0000)
committerranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 17 Mar 2004 03:53:02 +0000 (03:53 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@12035 b3059339-0415-0410-9bf9-f77b7e298cf2

libmpdemux/tv.c

index 2e4e89b..c6ae73a 100644 (file)
@@ -103,6 +103,7 @@ int demux_tv_fill_buffer(demuxer_t *demux, demux_stream_t *ds)
         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 @@ int demux_tv_fill_buffer(demuxer_t *demux, demux_stream_t *ds)
         {
                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);
         }