# HG changeset patch # User ods15 # Date 1202121932 0 # Node ID db8d14740060ce493c156557f3a99c82e6b90b8a # Parent 66fb9d4dea916d3b0df7cf90f906ef5dfb765feb Fix intented algo in syncpoint writing before keyframes in NUT muxer diff -r 66fb9d4dea91 -r db8d14740060 nutenc.c --- a/nutenc.c Mon Feb 04 10:34:35 2008 +0000 +++ b/nutenc.c Mon Feb 04 10:45:32 2008 +0000 @@ -462,7 +462,7 @@ if(1LL<<(20+3*nut->header_count) <= url_ftell(bc)) write_headers(nut, bc); - if(key_frame && !!(nus->last_flags & FLAG_KEY)) + if(key_frame && !(nus->last_flags & FLAG_KEY)) store_sp= 1; if(pkt->size + 30/*FIXME check*/ + url_ftell(bc) >= nut->last_syncpoint_pos + nut->max_distance)