mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
Raw audio and video are always keyframes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12035 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
766b00dbe2
commit
f8107ca194
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user