summaryrefslogtreecommitdiff
path: root/libavformat/nutenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-09 20:52:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-09 20:52:49 +0000
commit0fcfa8eb36cecf7e1e6c2b079de960bc3d4d1ade (patch)
tree7ee254a78131a2964ffefb7aea18aef753e77f2c /libavformat/nutenc.c
parent57cf99f2b7e388ff771dc72ae9aa7c476e6169b0 (diff)
add a universal fallback frame code for the case that no other applies
Originally committed as revision 10028 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 05f94285a6..007b65ce59 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -30,6 +30,13 @@ static void build_frame_code(AVFormatContext *s){
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 */