write correct time_base
[ffmpeg.git] / libavformat / nutenc.c
index 5e7beca..bc9a81f 100644 (file)
@@ -343,7 +343,7 @@ static int write_header(AVFormatContext *s){
         }else
             return -1;
 
         }else
             return -1;
 
-        put_v(bc, 0); //FIXME
+        put_v(bc, (nut->stream[i].time_base - nut->time_base)/sizeof(AVRational));
         put_v(bc, nut->stream[i].msb_pts_shift);
         put_v(bc, nut->stream[i].max_pts_distance);
         put_v(bc, codec->has_b_frames);
         put_v(bc, nut->stream[i].msb_pts_shift);
         put_v(bc, nut->stream[i].max_pts_distance);
         put_v(bc, codec->has_b_frames);