diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-09 12:25:13 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-03-09 12:25:13 +0000 |
commit | d71d64dcc1fec5fcc015366a0a668db63f138ff1 (patch) | |
tree | 6e06f7efc8024ac573a862074273279a8aa7388e /libavformat/nuv.c | |
parent | 37b7dac184f0cb73c604d8862819e7b31e1deec7 (diff) | |
download | ffmpeg-d71d64dcc1fec5fcc015366a0a668db63f138ff1.tar.gz |
Mark all packets from nuv demuxer as keyframes in order to make seeking work.
For proper seeking, they should be set correctly though.
Originally committed as revision 17907 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r-- | libavformat/nuv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c index 103223ee83..cc037f5ac9 100644 --- a/libavformat/nuv.c +++ b/libavformat/nuv.c @@ -218,6 +218,9 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { ret = av_new_packet(pkt, copyhdrsize + size); if (ret < 0) return ret; + // HACK: we have no idea if it is a keyframe, + // but if we mark none seeking will not work at all. + pkt->flags |= PKT_FLAG_KEY; pkt->pos = pos; pkt->pts = AV_RL32(&hdr[4]); pkt->stream_index = ctx->v_id; @@ -231,6 +234,7 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) { break; } ret = av_get_packet(pb, pkt, size); + pkt->flags |= PKT_FLAG_KEY; pkt->pos = pos; pkt->pts = AV_RL32(&hdr[4]); pkt->stream_index = ctx->a_id; |