# HG changeset patch # User reimar # Date 1236601513 0 # Node ID 98242eba0332de7521ae06b778b9a42b33140726 # Parent 755858ca9f6a62e81dac9ff31ec2f290458edc0d Mark all packets from nuv demuxer as keyframes in order to make seeking work. For proper seeking, they should be set correctly though. diff -r 755858ca9f6a -r 98242eba0332 nuv.c --- a/nuv.c Mon Mar 09 12:06:31 2009 +0000 +++ b/nuv.c Mon Mar 09 12:25:13 2009 +0000 @@ -218,6 +218,9 @@ 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 @@ 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;