# HG changeset patch # User michael # Date 1186692769 0 # Node ID 2c8579bcd2878ad317d023ad5da93d292e0e8506 # Parent 4a06a51ceb701510f491ac60861070a756a5432f add a universal fallback frame code for the case that no other applies diff -r 4a06a51ceb70 -r 2c8579bcd287 nutenc.c --- a/nutenc.c Thu Aug 09 18:37:28 2007 +0000 +++ b/nutenc.c Thu Aug 09 20:52:49 2007 +0000 @@ -30,6 +30,13 @@ int end= 254; int keyframe_0_esc= s->nb_streams > 2; int pred_table[10]; + FrameCode *ft; + + ft= &nut->frame_code[start]; + ft->flags= FLAG_CODED; + ft->size_mul=1; + ft->pts_delta=1; + start++; if(keyframe_0_esc){ /* keyframe = 0 escape */