changeset 2339:2c8579bcd287 libavformat

add a universal fallback frame code for the case that no other applies
author michael
date Thu, 09 Aug 2007 20:52:49 +0000
parents 4a06a51ceb70
children ab5509871fd2
files nutenc.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */