mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
report keyframes
Originally committed as revision 3608 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
595bf4ef63
commit
d08f4bcbbd
1 changed files with 4 additions and 0 deletions
|
|
@ -151,6 +151,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||
pkt->size = ret;
|
||||
pkt->pts = pts;
|
||||
pkt->stream_index = st->index;
|
||||
|
||||
if (!is_audio && ((flags >> 4)==1))
|
||||
pkt->flags |= PKT_FLAG_KEY;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue