static void update(NUTContext *nut, int stream_index, int64_t frame_start, int frame_type, int frame_code, int key_frame, int size, int64_t pts){

    StreamContext *stream= &nut->stream[stream_index];

    

    stream->last_key_frame= key_frame;

    nut->last_frame_start[ frame_type ]= frame_start;

    update_lru(stream->lru_pts_delta, pts - stream->last_pts, 3);

    update_lru(stream->lru_size     ,                   size, 2);

    stream->last_pts= pts;

    if(    nut->frame_code[frame_code].flags & FLAG_PTS 

        && nut->frame_code[frame_code].flags & FLAG_FULL_PTS)

        stream->last_full_pts= pts;

}

static void update(NUTContext *nut, int stream_index, int64_t frame_start, int frame_type, int frame_code, int key_frame, int size, int64_t pts){

    StreamContext *stream= &nut->stream[stream_index];

    

    stream->last_key_frame= key_frame;

    nut->last_frame_start[ frame_type ]= frame_start;

    update_lru(stream->lru_pts_delta, pts - stream->last_pts, 3);

    update_lru(stream->lru_size     ,                   size, 2);

    stream->last_pts= pts;

    if(    nut->frame_code[frame_code].flags & FLAG_PTS 

        && nut->frame_code[frame_code].flags & FLAG_FULL_PTS)

        stream->last_full_pts= pts;

}

static void FUNC_0(NUTContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int64_t VAR_7){

    StreamContext *stream= &VAR_0->stream[VAR_1];

    

    stream->last_key_frame= VAR_5;

    VAR_0->last_frame_start[ VAR_3 ]= VAR_2;

    update_lru(stream->lru_pts_delta, VAR_7 - stream->last_pts, 3);

    update_lru(stream->lru_size     ,                   VAR_6, 2);

    stream->last_pts= VAR_7;

    if(    VAR_0->VAR_4[VAR_4].flags & FLAG_PTS 

        && VAR_0->VAR_4[VAR_4].flags & FLAG_FULL_PTS)

        stream->last_full_pts= VAR_7;

}

static void FUNC_0(NUTContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int64_t VAR_7){ StreamContext *stream= &VAR_0->stream[VAR_1]; stream->last_key_frame= VAR_5; VAR_0->last_frame_start[ VAR_3 ]= VAR_2; update_lru(stream->lru_pts_delta, VAR_7 - stream->last_pts, 3); update_lru(stream->lru_size     ,                   VAR_6, 2); stream->last_pts= VAR_7; if(    VAR_0->VAR_4[VAR_4].flags & FLAG_PTS
&& VAR_0->VAR_4[VAR_4].flags & FLAG_FULL_PTS)
stream->last_full_pts= VAR_7; }